diff options
author | hoek <hoek@FreeBSD.org> | 2000-06-02 12:40:27 +0800 |
---|---|---|
committer | hoek <hoek@FreeBSD.org> | 2000-06-02 12:40:27 +0800 |
commit | 271e649042bb41605a154d9529ca59d85d6a855e (patch) | |
tree | cdd734db9383d8f5ff62c777b0bfebc87dcfe88f | |
parent | dd9a9f48fc916526f1a8ce82bedad2f3f34eaa05 (diff) | |
download | freebsd-ports-gnome-271e649042bb41605a154d9529ca59d85d6a855e.tar.gz freebsd-ports-gnome-271e649042bb41605a154d9529ca59d85d6a855e.tar.zst freebsd-ports-gnome-271e649042bb41605a154d9529ca59d85d6a855e.zip |
Remove %D/etc/pspp/{devices,ps-prologue,html-prologue,papersize}
if and only if `cmp -s %D/etc/pspp/{...}.default`.
Submitted by: bento
-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 |