Rev 91 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | magnus | 1 | #! /bin/sh |
41 | magnus | 2 | # prerm script for pike7.8 |
2 | magnus | 3 | # |
4 | # see: dh_installdeb(1) |
||
5 | # |
||
41 | magnus | 6 | # $Id: pike7.8-core.prerm,v 1.1 2006/01/17 22:37:48 grendel Exp $ |
2 | magnus | 7 | # |
8 | |||
9 | set -e |
||
10 | |||
41 | magnus | 11 | PIKE=7.8 |
2 | magnus | 12 | PIKEBIN=pike${PIKE} |
13 | |||
14 | # summary of how this script can be called: |
||
15 | # * <prerm> `remove' |
||
16 | # * <old-prerm> `upgrade' <new-version> |
||
17 | # * <new-prerm> `failed-upgrade' <old-version> |
||
18 | # * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> |
||
19 | # * <deconfigured's-prerm> `deconfigure' `in-favour' |
||
20 | # <package-being-installed> <version> `removing' |
||
21 | # <conflicting-package> <version> |
||
22 | # for details, see http://www.debian.org/doc/debian-policy/ or |
||
23 | # the debian-policy package |
||
24 | |||
25 | case "$1" in |
||
91 | holmgren | 26 | remove|deconfigure) |
2 | magnus | 27 | update-alternatives --remove pike /usr/bin/${PIKEBIN} |
92 | holmgren | 28 | find /usr/lib/$PIKEBIN/modules -name '*.o' -delete |
2 | magnus | 29 | ;; |
91 | holmgren | 30 | upgrade|failed-upgrade) |
2 | magnus | 31 | ;; |
32 | *) |
||
33 | echo "prerm called with unknown argument \`$1'" >&2 |
||
34 | exit 1 |
||
35 | ;; |
||
36 | esac |
||
37 | |||
38 | # dh_installdeb will replace this with shell code automatically |
||
39 | # generated by other debhelper scripts. |
||
40 | |||
41 | #DEBHELPER# |
||
42 | |||
43 | exit 0 |
||
44 | |||
45 |