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