cvsimport
[fvwm-themes.git] / debian / postinst
blob825fff7351693c7e495b23db21851c5c580bc3ab
1 #!/bin/sh
3 set -e
5 case "$1" in
6 configure)
7 if [ -x /usr/bin/fvwm-themes-menuapp ]; then
8 /usr/bin/fvwm-themes-menuapp \
9 --site --build-menus --remove-popup
12 if [ -x /usr/sbin/update-alternatives ]; then
13 update-alternatives --install \
14 /usr/bin/x-window-manager x-window-manager \
15 /usr/bin/fvwm-themes-start 60 --slave \
16 /usr/share/man/man1/x-windows-manager.1.gz \
17 x-windows-manager.1.gz \
18 /usr/share/man/man1/fvwm-themes-start.1.gz
19 update-alternatives --set \
20 x-window-manager /usr/bin/fvwm-themes-start
23 if [ -x /usr/bin/update-menus ]; then
24 update-menus
28 abort-upgrade|abort-remove|abort-deconfigure)
32 echo "postinst called with unknown argument \`$1'" >&2
33 exit 1
35 esac