summaryrefslogtreecommitdiff
path: root/debian/argyll-dbg.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-dbg.postinst
parent37df445514c0a0ec204f9e876d8c220e1fcfb955 (diff)
use dpkg-maintscript-helper dir_to_symlink for symlink doc dir
Diffstat (limited to 'debian/argyll-dbg.postinst')
-rw-r--r--debian/argyll-dbg.postinst16
1 files changed, 2 insertions, 14 deletions
diff --git a/debian/argyll-dbg.postinst b/debian/argyll-dbg.postinst
index 88e56e4..8618fb3 100644
--- a/debian/argyll-dbg.postinst
+++ b/debian/argyll-dbg.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-dbg ] && [ ! -L /usr/share/doc/argyll-dbg ]; then
- if rmdir /usr/share/doc/argyll-dbg 2>/dev/null; then
- ln -sf argyll-doc /usr/share/doc/argyll-dbg
- else
- echo "Remove nonempty doc directory to doc/argyll-dbg.bak"
- mv /usr/share/doc/argyll-dbg /usr/share/doc/argyll-dbg.bak
- ln -sf argyll-doc /usr/share/doc/argyll-dbg
- fi
- fi
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
- exit 0
+ dpkg-maintscript-helper dir_to_symlink /usr/share/doc/argyll-dbg argyll-doc -- "$@"
;;
*)