3 # see: dh_installdeb(1)
5 # Copyright (C) 2007 Mario Limonciello
6 # Copyright (C) 2009-2011 Canonical Ltd.
10 # summary of how this script can be called:
13 # * <old-postrm> `upgrade' <new-version>
14 # * <new-postrm> `failed-upgrade' <old-version>
15 # * <new-postrm> `abort-install'
16 # * <new-postrm> `abort-install' <old-version>
17 # * <new-postrm> `abort-upgrade' <old-version>
18 # * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
19 # for details, see /usr/share/doc/packaging-manual/
26 if [ "$1" = "purge" ]; then
29 # This will preserve the etc directory
30 rm -f /#PKGLIBDIR#/* 2>/dev/null || true
35 upgrade|failed-upgrade|abort-install|abort-upgrade|disappear
)
39 echo "postrm called with unknown argument \`$1'" >&2
44 # dh_installdeb will replace this with shell code automatically
45 # generated by other debhelper scripts.