Ajout de GroupUserFolder extrait de l'état suivant :
[GroupUserFolder.git] / debian / prerm
1 #! /bin/sh
2 #----------------------------------------------------------------
3 # Simple `.prerm' script for zope-* packages.
4 # First coded by Luca - De Whiskey's - De Vitis <luca@debian.org>
5 #----------------------------------------------------------------
6
7 set -e
8
9 # summary of how this script can be called:
10 # * <prerm> `remove'
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/
18
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"}' |
22 xargs rm -f >&2
23
24 case "$1" in
25 remove|upgrade|deconfigure)
26 ;;
27 failed-upgrade)
28 ;;
29 *)
30 echo "prerm called with unknown argument \`$1'" >&2
31 exit 0
32 ;;
33 esac
34
35 # dh_installdeb will replace this with shell code automatically
36 # generated by other debhelper scripts.
37
38 #DEBHELPER#
39
40 exit 0