2016-02-24 20:50:11 -05:00
|
|
|
|
#! /bin/sh
|
|
|
|
|
# Pre-remove script for ‘bsdgames’ package.
|
|
|
|
|
#
|
|
|
|
|
# Man page: ‘dh_installdeb(1)’
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
# Summary of ways this script can be called:
|
|
|
|
|
# * <prerm> ‘remove’
|
|
|
|
|
# * <old-prerm> ‘upgrade’ <new-version>
|
|
|
|
|
# * <new-prerm> ‘failed-upgrade’ <old-version>
|
|
|
|
|
# * <conflictor-prerm> ‘remove’
|
|
|
|
|
# ‘in-favour’ <package> <new-version>
|
|
|
|
|
# * <deconfigured-prerm> ‘deconfigure’
|
|
|
|
|
# ‘in-favour’ <package-being-installed> <version>
|
|
|
|
|
# ‘removing’ <conflicting-package> <version>
|
|
|
|
|
# For details, see <URL:http://www.debian.org/doc/debian-policy/> or
|
|
|
|
|
# the ‘debian-policy’ package.
|
|
|
|
|
|
2016-02-24 22:12:35 -05:00
|
|
|
|
action="$1"
|
|
|
|
|
|
|
|
|
|
case "$action" in
|
|
|
|
|
|
2016-02-24 22:22:33 -05:00
|
|
|
|
remove|deconfigure)
|
|
|
|
|
update-alternatives --remove \
|
|
|
|
|
adventure /usr/games/bsdgames-adventure
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
upgrade|failed-upgrade)
|
2016-02-24 22:12:35 -05:00
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*)
|
|
|
|
|
printf "prerm called with unknown action ‘%s’\n" "$action" >&2
|
|
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
esac
|
2016-02-24 20:50:11 -05:00
|
|
|
|
|
|
|
|
|
# dh_installdeb will replace this with shell code automatically
|
|
|
|
|
# generated by other debhelper scripts.
|
|
|
|
|
|
|
|
|
|
#DEBHELPER#
|
2016-02-24 20:54:23 -05:00
|
|
|
|
|
|
|
|
|
exit 0
|