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