summaryrefslogtreecommitdiff
path: root/debian/argyll.postinst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-16 09:32:07 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-16 09:32:07 +0200
commit047b5603c45a7788719b4083723d771384c48855 (patch)
tree7e908542355a77ab7445efabe032190bc3669653 /debian/argyll.postinst
parent37df445514c0a0ec204f9e876d8c220e1fcfb955 (diff)
use dpkg-maintscript-helper dir_to_symlink for symlink doc dir
Diffstat (limited to 'debian/argyll.postinst')
-rw-r--r--debian/argyll.postinst16
1 files changed, 2 insertions, 14 deletions
diff --git a/debian/argyll.postinst b/debian/argyll.postinst
index d32fab9..a750277 100644
--- a/debian/argyll.postinst
+++ b/debian/argyll.postinst
@@ -22,21 +22,9 @@ set -e
case "$1" in
- configure)
+ configure|abort-upgrade|abort-remove|abort-deconfigure)
# Replace documentation directory with symlink
- if [ -d /usr/share/doc/argyll ] && [ ! -L /usr/share/doc/argyll ]; then
- if rmdir /usr/share/doc/argyll 2>/dev/null; then
- ln -sf argyll-doc /usr/share/doc/argyll
- else
- echo "Remove nonempty doc directory to doc/argyll.bak"
- mv /usr/share/doc/argyll /usr/share/doc/argyll.bak
- ln -sf argyll-doc /usr/share/doc/argyll
- fi
- fi
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
- exit 0
+ dpkg-maintscript-helper dir_to_symlink /usr/share/doc/argyll argyll-doc -- "$@"
;;
*)