2 # prerm script for @OLDPACKAGE@
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/share/doc/packaging-manual/
18 if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/pkg ]; then
25 /usr/share/xml/xhtml/schema/dtd/1.0/xhtml1-strict.dtd \
26 /usr/share/xml/xhtml/schema/dtd/1.0/xhtml1-transitional.dtd \
27 /usr/share/xml/entities/xhtml/xhtml-lat1.ent \
28 /usr/share/xml/entities/xhtml/xhtml-special.ent \
29 /usr/share/xml/entities/xhtml/xhtml-symbol.ent \
32 test x"$(readlink /usr/share/gforge/common/include/$fname)" = \
33 x"$file" && rm -f /usr/share/gforge/common/include/$fname
36 if [ -f /etc/@OLDPACKAGE@/local.pl ]
38 rm -f /etc/@OLDPACKAGE@/local.pl
41 upgrade|deconfigure|failed-upgrade)
44 echo "prerm called with unknown argument \`$1'" >&2
49 # dh_installdeb will replace this with shell code automatically
50 # generated by other debhelper scripts.