summaryrefslogtreecommitdiff
path: root/debian/prerm.xsane
diff options
context:
space:
mode:
authorMartin Schulze <joey@finlandia.infodrom.north.de>2002-03-04 18:50:02 +0100
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:00 +0000
commit8b372c9248930ae29763202121434d3d676d0f30 (patch)
treee0c052af107a86192d8b261adbb3e8bba8351c84 /debian/prerm.xsane
parent2d113e8792747151bf5d830f1a1485f2f951f940 (diff)
Imported Debian patch 0.50-5.1debian/0.50-5.1
Diffstat (limited to 'debian/prerm.xsane')
-rw-r--r--debian/prerm.xsane12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/prerm.xsane b/debian/prerm.xsane
new file mode 100644
index 0000000..4dcaecf
--- /dev/null
+++ b/debian/prerm.xsane
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xsane ]; then
+ rm -f /usr/doc/xsane
+fi
+if [ "$1" = "upgrade" -o "$1" = "remove" ]; then
+ if command -v install-docs >/dev/null 2>&1; then
+ install-docs -r xsane
+ fi
+fi