Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 41 | Rev 92 | 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}
28
        ;;
91 holmgren 29
    upgrade|failed-upgrade)
2 magnus 30
        ;;
31
    *)
32
        echo "prerm 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
43
 
44