4
# see: dh_installdeb(1)
8
# summary of how this script can be called:
10
# * <old-prerm> `upgrade' <new-version>
11
# * <new-prerm> `failed-upgrade' <old-version>
12
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
13
# * <deconfigured's-prerm> `deconfigure' `in-favour'
14
# <package-being-installed> <version> `removing'
15
# <conflicting-package> <version>
16
# for details, see /usr/doc/packaging-manual/
19
remove|upgrade|deconfigure)
21
# if [ -f /usr/sbin/dhelp_parse ]; then
22
# /usr/sbin/dhelp_parse -d /usr/share/doc/ess
25
# install-info --quiet --remove /usr/info/ess.info.gz
30
echo "prerm called with unknown argument \`$1'" >&2
35
# dh_installdeb will replace this with shell code automatically
36
# generated by other debhelper scripts.
38
# Automatically added by dh_installdocs
39
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/ess ]; then
42
# End automatically added section
45
if [ -x /usr/sbin/dhelp_parse ]; then
46
/usr/sbin/dhelp_parse -d /usr/share/doc/ess/
49
# Automatically added by dh_installemacsen
50
if [ -x /usr/lib/emacsen-common/emacs-package-remove ] ; then
51
/usr/lib/emacsen-common/emacs-package-remove ess
53
# End automatically added section
54
# Automatically added by dh_installinfo
55
install-info --quiet --remove /usr/share/info/ess.info
56
# End automatically added section