diff options
author | Tim Vanderhoek <hoek@FreeBSD.org> | 2000-06-02 04:40:27 +0000 |
---|---|---|
committer | Tim Vanderhoek <hoek@FreeBSD.org> | 2000-06-02 04:40:27 +0000 |
commit | fd7f3309c7da7baa2d6bcc013bbfefd43d0d3548 (patch) | |
tree | 72230dc77aa3403b594dc5cb3c1896466b5c6f61 /math | |
parent | cb0ea2b9a7302d869fe41ee65b92fa1386f6dad5 (diff) | |
download | ports-fd7f3309c7da7baa2d6bcc013bbfefd43d0d3548.tar.gz ports-fd7f3309c7da7baa2d6bcc013bbfefd43d0d3548.zip |
Remove %D/etc/pspp/{devices,ps-prologue,html-prologue,papersize}
if and only if `cmp -s %D/etc/pspp/{...}.default`.
Submitted by: bento
Notes
Notes:
svn path=/head/; revision=29087
Diffstat (limited to 'math')
-rw-r--r-- | math/pspp/pkg-plist | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/math/pspp/pkg-plist b/math/pspp/pkg-plist index 90a4b85ba5f9..734099075f9f 100644 --- a/math/pspp/pkg-plist +++ b/math/pspp/pkg-plist @@ -14,12 +14,16 @@ share/doc/pspp/NEWS share/doc/pspp/README share/doc/pspp/TODO @dirrm share/doc/pspp +@unexec if [ -f %D/etc/pspp/devices ] && cmp -s %D/etc/pspp/devices %D/etc/pspp/devices.default ; then rm -f %D/etc/pspp/devices; fi etc/pspp/devices.default @exec if [ ! -f %D/etc/pspp/devices ] ; then cp -p %D/%F %B/devices; fi +@unexec if [ -f %D/etc/pspp/html-prologue ] && cmp -s %D/etc/pspp/html-prologue %D/etc/pspp/html-prologue.default ; then rm -f %D/etc/pspp/html-prologue; fi etc/pspp/html-prologue.default @exec if [ ! -f %D/etc/pspp/html-prologue ] ; then cp -p %D/%F %B/html-prologue; fi +@unexec if [ -f %D/etc/pspp/papersize ] && cmp -s %D/etc/pspp/papersize %D/etc/pspp/papersize.default ; then rm -f %D/etc/pspp/papersize; fi etc/pspp/papersize.default @exec if [ ! -f %D/etc/pspp/papersize ] ; then cp -p %D/%F %B/papersize; fi +@unexec if [ -f %D/etc/pspp/ps-prologue ] && cmp -s %D/etc/pspp/ps-prologue %D/etc/pspp/ps-prologue.default ; then rm -f %D/etc/pspp/ps-prologue; fi etc/pspp/ps-prologue.default @exec if [ ! -f %D/etc/pspp/ps-prologue ] ; then cp -p %D/%F %B/ps-prologue; fi @unexec rmdir %D/etc/pspp 2>/dev/null || true |