summaryrefslogtreecommitdiff
path: root/debian/sane-utils.preinst
blob: 1b5f82633e3d12c657fc2ea0053772e4b3e368c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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" = 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#