4 # Author : Manoj Srivastava ( srivasta@tiamat.datasync.com )
5 # Created On : Thu Oct 29 15:31:03 1998
6 # Created On Node : tiamat.datasync.com
7 # Last Modified By : Manoj Srivastava
8 # Last Modified On : Thu Oct 29 15:33:43 1998
9 # Last Machine Used: tiamat.datasync.com
11 # Status : Unknown, Use with caution!
17 # Abort if any command returns an error value
20 # This is filled in by debian/rules
23 # This script is called as the first step in removing the package from
24 # the system. This includes cases where the user explicitly asked for
25 # the package to be removed, upgrade, automatic removal due to conflicts,
26 # and deconfiguration due to temporary removal of a depended-on package.
30 # This package about to be removed.
33 # There are two sub-cases:
34 if test "${2+set}" = set; then
35 if test "$2" != in-favour; then
36 echo "$0: undocumented call to \`prerm $*'" 1>&2
39 # We are being removed because of a conflict with package $3
40 # (version $4), which is now being installed.
44 # The package is being removed in its own right.
49 if test "$2" != in-favour -o "$5" != removing; then
50 echo "$0: undocumented call to \`prerm $*'" 1>&2
53 # Package $6 (version $7) which we depend on is being removed due
54 # to a conflict with package $3 (version $4), and this package is
55 # being deconfigured until $6 can be reinstalled.
60 # Prepare to upgrade FROM THIS VERSION of this package to version $2.
65 # Prepare to upgrade from version $2 of this package TO THIS VERSION.
66 # This is only used if the old version's prerm couldn't handle it,
67 # and returned non-zero. (Fix old prerm bugs here.)
71 *) echo "$0: didn't understand being called with \`$1'" 1>&2
75 # FSSTND compatibility symlinks
76 if [ \( "$1" = "upgrade" -o "$1" = "remove" \) \
77 -a -L /usr/doc/$PACKAGE ]; then
78 rm -f /usr/doc/$PACKAGE
81 if [ -x /usr/sbin/install-docs ]; then
82 /usr/sbin/install-docs -r $PACKAGE