summaryrefslogtreecommitdiff
path: root/debian/prerm.xsane
blob: 4dcaecf6e591478b1eb8631f451fde7779980276 (plain)
1
2
3
4
5
6
7
8
9
10
11
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