diff options
Diffstat (limited to 'debian/xsane.postinst')
-rw-r--r-- | debian/xsane.postinst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/xsane.postinst b/debian/xsane.postinst new file mode 100644 index 0000000..b0b66df --- /dev/null +++ b/debian/xsane.postinst @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +HTMLDOCDIR=/usr/share/doc/xsane/html +NEWHTMLDOCDIR=../xsane-common/html + +if [ -d "$HTMLDOCDIR" ] && [ ! -L "$HTMLDOCDIR" ]; then + # Remove old directory and files that are now provided by xsane-common + rm -rf "$HTMLDOCDIR" + # Create a link to the new directory + ln -s "$NEWHTMLDOCDIR" "$HTMLDOCDIR" +fi + + +#DEBHELPER# |