summaryrefslogtreecommitdiff
path: root/debian/sane-utils.preinst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-02-24 07:34:54 +0100
committerJörg Frings-Fürst <debian@jff.email>2022-02-24 07:34:54 +0100
commit4702f9548612bf7a82d0e0195c0b6428f1c4553a (patch)
tree48b54593c66d285d35b9dbc7d1ca11f4da34d356 /debian/sane-utils.preinst
parent757ec55bee507c8bb2523302a08fd74d16540a83 (diff)
parent425490576efeef5d57889a5a7f4accaee9afdcd7 (diff)
Merge branch 'release/debian/1.1.1-3'debian/1.1.1-3
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#