2012-01-29 17:07:10 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
set -e
|
|
|
|
|
|
2009-08-24 10:20:05 +02:00
|
|
|
# Window Maker postinst.
|
|
|
|
|
#
|
|
|
|
|
# Marcelo Magallon <mmagallo@debian.org>
|
2012-01-29 17:07:10 +01:00
|
|
|
# Rodolfo "kix" García <kix@kix.es>
|
2009-08-24 10:20:05 +02:00
|
|
|
|
|
|
|
|
x_wm_link=/etc/alternatives/x-window-manager
|
|
|
|
|
x_wm_man_link=/usr/share/man/man1/x-window-manager.1.gz
|
|
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
|
configure)
|
|
|
|
|
update-alternatives --install /usr/bin/x-window-manager \
|
|
|
|
|
x-window-manager /usr/bin/wmaker 50 \
|
|
|
|
|
--slave /usr/share/man/man1/x-window-manager.1.gz \
|
|
|
|
|
x-window-manager.1.gz /usr/share/man/man1/wmaker.1x.gz
|
|
|
|
|
|
|
|
|
|
if [ -x /usr/bin/update-menus -a -x /usr/bin/install-menu ] ; then
|
|
|
|
|
update-menus
|
2011-08-16 11:56:02 +02:00
|
|
|
fi
|
2009-08-24 10:20:05 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
abort-upgrade|abort-deconfigure|abort-remove)
|
|
|
|
|
# how did we got here? Force a non-zero exit code
|
|
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*)
|
|
|
|
|
echo "postinst called with unkown argument: \$1" >&2
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
#DEBHELPER#
|
|
|
|
|
|
|
|
|
|
exit 0
|