pkg://frotz_2.43-1_i386.deb:69278/postinst
info downloads
#! /bin/sh
# postinst script for frotz
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
#
# quoting from the policy:
# Any necessary prompting should almost always be confined to the
# post-installation script, and should be protected with a conditional
# so that unnecessary prompting doesn't happen if a package's
# installation fails and the `postinst' is called with `abort-upgrade',
# `abort-remove' or `abort-deconfigure'.
case "$1" in
configure)
update-alternatives \
--install /usr/games/zcode-interpreter zcode-interpreter /usr/games/frotz 60 \
--slave /usr/share/man/man6/zcode-interpreter.6.gz zcode-interpreter-man-gz \
/usr/share/man/man6/frotz.6.gz
# Old versions used zcode-support, which created the following files.
# They are now redundant, and we have to clean them up because no one
# else will.
rm -f /usr/lib/menu/zcode-support /etc/menu/zcode-support
# If we had to create /usr/X11R6/man/man6 in prerm in order to get rid
# of an old alternative, we remove it again here.
if test -d /usr/X11R6/man/man6 \
-a "`ls -A /usr/X11R6/man/man6/* 2>/dev/null`" = ""; then
rmdir /usr/X11R6/man/man6 2>/dev/null || true
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0