diff options
Diffstat (limited to 'debian/prerm.xsane')
-rw-r--r-- | debian/prerm.xsane | 12 |
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 |