blob: 2e497813d78baa57f0f925286d917c6e41f661e0 (
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
28
29
30
|
#!/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" = install ] || [ "$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#
|