prerm 1 #! /bin/sh
2 set -e
3
4 # package name according to lisp
5 LISP_PKG=cl-irc
6
7 # summary of how this script can be called:
8 # * <prerm> `remove'
9 # * <old-prerm> `upgrade' <new-version>
10 # * <new-prerm> `failed-upgrade' <old-version>
11 # * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
12 # * <deconfigured's-prerm> `deconfigure' `in-favour'
13 # <package-being-installed> <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
19 case "$1" in
20 remove|upgrade|deconfigure)
21 /usr/sbin/unregister-common-lisp-source ${LISP_PKG}
22 ;;
23 failed-upgrade)
24 ;;
25 *)
26 echo "prerm called with unknown argument \`$1'" >&2
27 exit 1
28 ;;
29 esac
30
31 # dh_installdeb will replace this with shell code automatically
32 # generated by other debhelper scripts.
33
34 #DEBHELPER#
35
36 exit 0
37
38