r4808: *** empty log message ***
[cl-readline.git] / debian / postinst
1 #! /bin/sh
2
3
4 set -e
5
6 # package name according to lisp
7 LISP_PKG=cl-readline
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 #        * <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 # quoting from the policy:
21 #     Any necessary prompting should almost always be confined to the
22 #     post-installation script, and should be protected with a conditional
23 #     so that unnecessary prompting doesn't happen if a package's
24 #     installation fails and the `postinst' is called with `abort-upgrade',
25 #     `abort-remove' or `abort-deconfigure'.
26
27 case "$1" in
28     configure)
29         /usr/sbin/register-common-lisp-source ${LISP_PKG}
30         ;;
31     abort-upgrade|abort-remove|abort-deconfigure)
32         ;;
33     *)
34         echo "postinst called with unknown argument \`$1'" >&2
35         exit 1
36         ;;
37 esac
38
39 # dh_installdeb will replace this with shell code automatically
40 # generated by other debhelper scripts.
41
42 #DEBHELPER#
43
44 exit 0