pkg://olvwm_4.4.3.2p1.4-16woody2_m68k.deb:174654/postinst
info downloads
#!/bin/sh
set -e
# remove obsolete diversions
if dpkg-divert --list | \
grep -q '^diversion of /usr/X11R6/lib/openwin-menu to .* by olvwm$'; then
dpkg-divert --package olvwm --remove --rename \
--divert /usr/X11R6/lib/openwin-menu.xview /usr/X11R6/lib/openwin-menu
fi
if dpkg-divert --list | \
grep -q '^diversion of /usr/X11R6/man/man1/olwm.1x to .* by olvwm$'; then
dpkg-divert --package olvwm --remove --rename \
--divert /usr/X11R6/man/man1/olwm.1x.xview /usr/X11R6/man/man1/olwm.1x
fi
# Automatically added by dh_installdocs
if [ "$1" = "configure" ]; then
if [ -d /usr/doc -a ! -e /usr/doc/olvwm -a -d /usr/share/doc/olvwm ]; then
ln -sf ../share/doc/olvwm /usr/doc/olvwm
fi
fi
# End automatically added section
# Automatically added by dh_installmenu
inst=/etc/menu-methods/olvwm
if [ -x /usr/bin/update-menus -a -f $inst ] ; then
chmod a+x $inst
update-menus
fi
# End automatically added section
if [ "$1" = configure ]; then
# Remove old alternative (if it's still there)
update-alternatives --remove x-window-manager /usr/bin/X11/olvwm > /dev/null 2>&1 || true
# ...and install new one that now points to the wrapper
update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/X11/olvwm-x-window-manager 45 \
--slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz /usr/X11R6/man/man1/olvwm.1.gz
fi