Cleaner uninstall process, remove screenrc if it has not been altered

by the user.

Submitted by:	marius@alchemy.franken.de
This commit is contained in:
Cy Schubert 2002-10-21 23:44:24 +00:00
parent 4bed87d63d
commit 77a87f872e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68553
2 changed files with 6 additions and 2 deletions

View file

@ -18,6 +18,8 @@ share/screen/utf8encodings/c8
share/screen/utf8encodings/cc
share/screen/utf8encodings/cd
share/screen/utf8encodings/d6
@unexec if cmp -s %D/etc/screenrc %D/etc/screenrc.sample; then rm -f %D/etc/screenrc; else echo If permanently deleting this package, %%PREFIX%%/etc/screenrc must be removed manually; fi
etc/screenrc.sample
@exec [ -f %B/screenrc ] || cp %B/%f %B/screenrc
@dirrm share/screen/utf8encodings
@dirrm share/screen
@unexec echo If permanently deleting this package, %%PREFIX%%/etc/screenrc must be removed manually

View file

@ -18,6 +18,8 @@ share/screen/utf8encodings/c8
share/screen/utf8encodings/cc
share/screen/utf8encodings/cd
share/screen/utf8encodings/d6
@unexec if cmp -s %D/etc/screenrc %D/etc/screenrc.sample; then rm -f %D/etc/screenrc; else echo If permanently deleting this package, %%PREFIX%%/etc/screenrc must be removed manually; fi
etc/screenrc.sample
@exec [ -f %B/screenrc ] || cp %B/%f %B/screenrc
@dirrm share/screen/utf8encodings
@dirrm share/screen
@unexec echo If permanently deleting this package, %%PREFIX%%/etc/screenrc must be removed manually