Initial import of FiveAM code. This is exactly equal to to bese-2004@common-lisp...
[fiveam.git] / debian / postinst
1 #! /bin/sh
2 # postinst script for cl-fiveam
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # package name according to lisp
9 LISP_CL_SHARE=/usr/share/common-lisp
10 LISP_PKG=fiveam
11 LISP_PKG_SOURCE=${LISP_CL_SHARE}/source/${LISP_PKG}
12
13 # summary of how this script can be called:
14 #        * <postinst> `configure' <most-recently-configured-version>
15 #        * <old-postinst> `abort-upgrade' <new version>
16 #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
17 #          <new-version>
18 #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
19 #          <failed-install-package> <version> `removing'
20 #          <conflicting-package> <version>
21 # for details, see http://www.debian.org/doc/debian-policy/ or
22 # the debian-policy package
23 #
24 # quoting from the policy:
25 #     Any necessary prompting should almost always be confined to the
26 #     post-installation script, and should be protected with a conditional
27 #     so that unnecessary prompting doesn't happen if a package's
28 #     installation fails and the `postinst' is called with `abort-upgrade',
29 #     `abort-remove' or `abort-deconfigure'.
30
31 case "$1" in
32     configure)
33         /usr/sbin/register-common-lisp-source ${LISP_PKG}
34         ;;
35     abort-upgrade|abort-remove|abort-deconfigure)
36         ;;
37     *)
38         echo "postinst called with unknown argument \`$1'" >&2
39         exit 1
40         ;;
41 esac
42
43 # dh_installdeb will replace this with shell code automatically
44 # generated by other debhelper scripts.
45
46 #DEBHELPER#
47
48 exit 0