summaryrefslogtreecommitdiff
path: root/debian/sane-utils.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sane-utils.preinst')
-rw-r--r--debian/sane-utils.preinst30
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/sane-utils.preinst b/debian/sane-utils.preinst
new file mode 100644
index 0000000..2e49781
--- /dev/null
+++ b/debian/sane-utils.preinst
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+set -e
+
+MANPAGE=/usr/share/man/man5/sane-umax_pp.5.gz
+MANLINK=/usr/share/man/man5/umax_pp.5.gz
+
+
+
+if [ "$1" = install ] || [ "$1" = upgrade ]; then
+
+ ## Remove obsolete manpages that are now provided by sane-common
+ if dpkg --compare-versions "$2" le "1.1.1-2"; then
+
+ if [ -f "$MANLINK" ] && [ -L "$MANLINK" ]; then
+ rm -rf "$MANLINK"
+ fi
+
+
+ if [ -f "$MANPAGE" ]; then
+ rm -rf "$MANPAGE"
+ fi
+ fi
+fi
+
+
+
+
+
+#DEBHELPER#