summaryrefslogtreecommitdiff
path: root/debian/postinst.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/postinst.xsane
parent2d113e8792747151bf5d830f1a1485f2f951f940 (diff)
Imported Debian patch 0.50-5.1debian/0.50-5.1
Diffstat (limited to 'debian/postinst.xsane')
-rw-r--r--debian/postinst.xsane11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/postinst.xsane b/debian/postinst.xsane
new file mode 100644
index 0000000..8ab57e9
--- /dev/null
+++ b/debian/postinst.xsane
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+if [ -x /usr/bin/update-menus ] ; then update-menus ; fi
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xsane -a -d /usr/share/doc/xsane ]; then
+ ln -sf ../share/doc/xsane /usr/doc/xsane
+ fi
+ if command -v install-docs >/dev/null 2>&1; then
+ install-docs -i /usr/share/doc-base/xsane
+ fi
+fi