Debian Codegraph @

debian/colossal-cave-adventure.postinst

raw
1 #! /bin/sh
2 # Post-install script for ‘colossal-cave-adventure’ package.
3 #
4 # Manual page: ‘dh_installdeb(1)’.
5
6 set -e
7
8 # Summary of ways this script can be called:
9 # * <postinst> ‘configure’ <most-recently-configured-version>
10 # * <old-postinst> ‘abort-upgrade’ <new version>
11 # * <conflictor-postinst> ‘abort-remove’
12 # ‘in-favour’ <package> <new-version>
13 # * <deconfigured-postinst> ‘abort-deconfigure’
14 # ‘in-favour’ <failed-install-package> <version>
15 # ‘removing’ <conflicting-package> <version>
16 # For details, see <URL:http://www.debian.org/doc/debian-policy/> or
17 # the ‘debian-policy’ package.
18
19 PRIORITY=70
20
21 action="$1"
22
23 case "$action" in
24
25 configure)
26 update-alternatives --install \
27 /usr/games/adventure adventure \
28 /usr/games/colossal-cave-adventure $PRIORITY \
29 --slave \
30 /usr/share/man/man6/adventure.6.gz adventure.6.gz \
31 /usr/share/man/man6/colossal-cave-adventure.6.gz
32 ;;
33
34 abort-upgrade|abort-remove|abort-deconfigure)
35 ;;
36
37 *)
38 printf "postinst called with unknown argument ‘%s’\n" "$1" >&2
39 exit 1
40 ;;
41
42 esac
43
44 # ‘dh_installdeb’ will replace this with shell code automatically
45 # generated by other Debhelper scripts.
46
47 #DEBHELPER#
48
49 exit 0
50
51
52 # Local variables:
53 # coding: utf-8
54 # mode: sh
55 # End:
56 # vim: fileencoding=utf-8 filetype=sh :