Imported Debian patch 0.1.0+git20131207+e452e83-0ubuntu12
[deb_libhybris.git] / debian / libhybris.postrm.in
CommitLineData
4395b8c4
RSA
1#! /bin/sh
2#
3# see: dh_installdeb(1)
4#
5# Copyright (C) 2007 Mario Limonciello
6# Copyright (C) 2009-2011 Canonical Ltd.
7
8set -e
9
10# summary of how this script can be called:
11# * <postrm> `remove'
12# * <postrm> `purge'
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/
20
21PKGNAME=#DRIVERNAME#
22
23case "$1" in
24 remove|purge)
25
26 if [ "$1" = "purge" ]; then
27 rm -Rf /#PKGLIBDIR#
28 else
29 # This will preserve the etc directory
30 rm -f /#PKGLIBDIR#/* 2>/dev/null || true
31 fi
32
33 ;;
34
35 upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
36 ;;
37
38 *)
39 echo "postrm called with unknown argument \`$1'" >&2
40 exit 0
41
42esac
43
44# dh_installdeb will replace this with shell code automatically
45# generated by other debhelper scripts.
46
47#DEBHELPER#