2 #----------------------------------------------------------------
3 # Simple `.prerm' script for zope-* packages.
4 # First coded by Luca - De Whiskey's - De Vitis <luca@debian.org>
5 #----------------------------------------------------------------
9 # summary of how this script can be called:
11 # * <old-prerm> `upgrade' <new-version>
12 # * <new-prerm> `failed-upgrade' <old-version>
13 # * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
14 # * <deconfigured's-prerm> `deconfigure' `in-favour'
15 # <package-being-installed> <version> `removing'
16 # <conflicting-package> <version>
17 # for details, see /usr/share/doc/packaging-manual/
19 # I simply replaced the PACKAGE variable with the subscript
20 dpkg
--listfiles $
(basename $0 .prerm
) |
21 awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
25 remove|upgrade|deconfigure
)
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.