cvsimport
[fvwm.git] / debian / prerm
blob6dbb97f617001b18b2bac2c615818b9f70b4910a
1 #! /bin/sh
2 # prerm script for fvwm
4 # see: dh_installdeb(1)
6 set -e
8 # summary of how this script can be called:
9 # * <prerm> `remove'
10 # * <prerm> `purge'
11 # * <old-prerm> `upgrade' <new-version>
12 # * <new-prerm> `failed-upgrade' <old-version>
13 # * <new-prerm> `abort-install'
14 # * <new-prerm> `abort-install' <old-version>
15 # * <new-prerm> `abort-upgrade' <old-version>
16 # * <disappearer's-prerm> `disappear' <overwriter> <new-version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
21 case "$1" in
22 purge|remove|upgrade)
23 if [ -x update-alternatives ]; then
24 update-alternatives --remove \
25 x-window-manager /usr/bin/fvwm
26 update-alternatives --auto x-window-manager
30 failed-upgrade|abort-install|abort-upgrade|disappear)
34 echo "prerm called with unknown argument \`$1'" >&2
35 exit 1
37 esac
39 # dh_installdeb will replace this with shell code automatically
40 # generated by other debhelper scripts.
42 #DEBHELPER#
44 exit 0