From 047b5603c45a7788719b4083723d771384c48855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 16 Sep 2014 09:32:07 +0200 Subject: use dpkg-maintscript-helper dir_to_symlink for symlink doc dir --- debian/argyll-ref.postinst | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 debian/argyll-ref.postinst (limited to 'debian/argyll-ref.postinst') diff --git a/debian/argyll-ref.postinst b/debian/argyll-ref.postinst new file mode 100644 index 0000000..858bf74 --- /dev/null +++ b/debian/argyll-ref.postinst @@ -0,0 +1,40 @@ +#!/bin/sh +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +# source debconf library +#. /usr/share/debconf/confmodule + + +case "$1" in + + configure|abort-upgrade|abort-remove|abort-deconfigure) + # Replace documentation directory with symlink + dpkg-maintscript-helper dir_to_symlink /usr/share/doc/argyll-ref argyll-doc -- "$@" + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; + +esac + +#DEBHELPER# + + +exit 0 -- cgit v1.2.3