debian/prerm
author Ryan C. Gordon <icculus@icculus.org>
Thu, 18 Dec 2003 19:54:41 +0000
changeset 611 bda0e4d678fb
parent 437 2dff6a7d42b4
permissions -rw-r--r--
Updated.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
437
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
#! /bin/sh
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
# prerm script for libphysfs0
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
#
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
# see: dh_installdeb(1)
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
set -e
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
# summary of how this script can be called:
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9
#        * <prerm> `remove'
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    10
#        * <old-prerm> `upgrade' <new-version>
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    11
#        * <new-prerm> `failed-upgrade' <old-version>
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    12
#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    13
#        * <deconfigured's-prerm> `deconfigure' `in-favour'
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    14
#          <package-being-installed> <version> `removing'
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    15
#          <conflicting-package> <version>
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    16
# for details, see http://www.debian.org/doc/debian-policy/ or
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    17
# the debian-policy package
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    18
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    19
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    20
case "$1" in
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    21
    remove|upgrade|deconfigure)
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    22
#       install-info --quiet --remove /usr/info/libphysfs0.info.gz
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    23
        ;;
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    24
    failed-upgrade)
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    25
        ;;
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    26
    *)
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    27
        echo "prerm called with unknown argument \`$1'" >&2
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    28
        exit 1
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    29
    ;;
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    30
esac
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    31
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    32
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    33
# dh_installdeb will replace this with shell code automatically
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    34
# generated by other debhelper scripts.
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    35
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    36
#DEBHELPER#
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    37
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    38
exit 0
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    39
2dff6a7d42b4 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    40