summaryrefslogtreecommitdiff
path: root/debian/xsane.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/xsane.postinst')
-rw-r--r--debian/xsane.postinst14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/xsane.postinst b/debian/xsane.postinst
new file mode 100644
index 0000000..3a7af58
--- /dev/null
+++ b/debian/xsane.postinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+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#