New header file switchmenu.h
[wmaker-crm.git] / debian / wmaker-common.postrm
blobfb13fcd06454f6e2440233ef9f1bd05e9b8f3ca0
1 #!/bin/sh
2 set -e
4 inst="/etc/menu-methods/wmaker /etc/menu-methods/wmappearance"
6 case "$1" in
7 remove)
8 for file in $inst ; do
9 if [ -f $file ] ; then
10 chmod a-x $file
12 done
14 purge)
15 if [ -x /usr/bin/update-menus ] ; then
16 update-menus
17 rm -f /etc/GNUstep/Defaults/menu.hook /etc/GNUstep/Defaults/appearance.menu
20 upgrade|abort-install|disappear)
21 # nothing to do
23 failed-upgrade)
24 # this is an upgrade, and it has failed. What can fail?
25 exit 1
27 abort-upgrade)
28 # preinst failed, leave things like they were
31 echo "postrm called with unknown argument \`$1'" >&2
32 exit 1
34 esac
36 #DEBHELPER#
38 exit 0