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