Inotify: Use wwarning() instead of fprintf()
[wmaker-crm.git] / debian / wmaker-common.postrm
blob17400d15f5625e0a5967fcb8ecf64829f1451083
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/sbin/register-window-manager ]; then
16 register-window-manager --remove wmaker
19 if [ -x /usr/bin/update-menus ] ; then
20 update-menus
21 rm -f /etc/X11/WindowMaker/menu.hook /etc/X11/WindowMaker/plmenu.hook
24 upgrade|abort-install|disappear)
25 # nothing to do
27 failed-upgrade)
28 # this is an upgrade, and it has failed. What can fail?
29 exit 1
31 abort-upgrade)
32 # preinst failed, leave things like they were
35 echo "postrm called with unknown argument \`$1'" >&2
36 exit 1
38 esac
40 #DEBHELPER#
42 exit 0