summaryrefslogtreecommitdiff
path: root/debian/xsane-common.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/xsane-common.preinst')
-rw-r--r--debian/xsane-common.preinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/xsane-common.preinst b/debian/xsane-common.preinst
new file mode 100644
index 0000000..b319f56
--- /dev/null
+++ b/debian/xsane-common.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+HTMLDOCDIR=/usr/share/doc/xsane-common/html
+
+if [ -d "$HTMLDOCDIR" ] && [ -L "$HTMLDOCDIR" ]; then
+ # Remove old directory and files that are now provided by xsane-common
+ rm -rf "$HTMLDOCDIR"
+fi
+
+
+#DEBHELPER#