Debian Codegraph @

debian/love.postinst

raw
1 #!/bin/sh
2 # postinst script for #PACKAGE#
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # summary of how this script can be called:
9 # * <postinst> `configure' <most-recently-configured-version>
10 # * <old-postinst> `abort-upgrade' <new version>
11 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12 # <new-version>
13 # * <postinst> `abort-remove'
14 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15 # <failed-install-package> <version> `removing'
16 # <conflicting-package> <version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
19
20
21 case "$1" in
22 configure)
23 update-alternatives --quiet --install \
24 /usr/bin/love \
25 love \
26 /usr/bin/love-11.5 \
27 10
28 update-alternatives --quiet --install \
29 /usr/share/man/man6/love.6.gz \
30 love.6.gz \
31 /usr/share/man/man6/love-11.5.6.gz \
32 10
33 if which update-binfmts >/dev/null; then
34 update-binfmts --import love
35 fi
36 ;;
37
38 abort-upgrade|abort-remove|abort-deconfigure)
39 ;;
40
41 *)
42 echo "postinst called with unknown argument \`$1'" >&2
43 exit 1
44 ;;
45 esac
46
47 #update-mime-database /usr/share/mime
48 #xdg-mime default love.desktop application/x-love-game || true
49
50 #DEBHELPER#
51
52 exit 0