Debian Codegraph @

debian/chibi-scheme-images.postinst

raw
1 #!/bin/sh
2 #
3 # postinst script for chibi-scheme-images
4 #
5 # see: dh_installdeb(1)
6
7 set -e
8
9 # summary of how this script can be called:
10 # * <postinst> `configure' <most-recently-configured-version>
11 # * <old-postinst> `abort-upgrade' <new version>
12 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
13 # <new-version>
14 # * <postinst> `abort-remove'
15 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
16 # <failed-install-package> <version> `removing'
17 # <conflicting-package> <version>
18 # for details, see https://www.debian.org/doc/debian-policy/
19 # or the debian-policy package
20
21 MODDIR=/usr/share/chibi
22
23 case "$1" in
24 configure)
25 # Create Chibi images (the ones created by "make install")
26 chibi-scheme -d "${MODDIR}/chibi.img"
27 chibi-scheme -xscheme.red -d "${MODDIR}/red.img"
28 chibi-scheme -mchibi.snow.commands -mchibi.snow.interface -mchibi.snow.package -mchibi.snow.utils -d "${MODDIR}/snow.img"
29 ;;
30
31 abort-upgrade|abort-remove|abort-deconfigure)
32 ;;
33
34 *)
35 echo "postinst called with unknown argument \`$1'" >&2
36 exit 1
37 ;;
38 esac
39
40 # dh_installdeb will replace this with shell code automatically
41 # generated by other debhelper scripts.
42
43 #DEBHELPER#
44
45 exit 0