Removed data directory from subdirs so that the manually created Makefile is not...
[toast/confclerk.git] / debian / postrm
1 #!/bin/sh
2 # postrm script for helloworld
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7 DIR_NAME=.fosdem
8
9 # summary of how this script can be called:
10 #        * <postrm> `remove'
11 #        * <postrm> `purge'
12 #        * <old-postrm> `upgrade' <new-version>
13 #        * <new-postrm> `failed-upgrade' <old-version>
14 #        * <new-postrm> `abort-install'
15 #        * <new-postrm> `abort-install' <old-version>
16 #        * <new-postrm> `abort-upgrade' <old-version>
17 #        * <disappearer's-postrm> `disappear' <overwriter>
18 #          <overwriter-version>
19 # for details, see http://www.debian.org/doc/debian-policy/ or
20 # the debian-policy package
21
22
23 case "$1" in
24     purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
25
26     if test -d ~/$DIR_NAME; then        
27         echo "postrm: removing ~/$DIR_NAME"
28         rm -rf ~/$DIR_NAME      
29     fi
30     if test -d ~user/$DIR_NAME; then                    
31         echo "postrm: removing ~user/$DIR_NAME"
32         rm -rf ~user/$DIR_NAME
33     fi
34     ;;
35
36     *)
37         echo "postrm called with unknown argument \`$1'" >&2
38         exit 1
39     ;;
40 esac
41
42 # dh_installdeb will replace this with shell code automatically
43 # generated by other debhelper scripts.
44
45 #DEBHELPER#
46
47 exit 0
48
49