source: debian/postrm @ 47bfffb

qt5
Last change on this file since 47bfffb was 6dc0dbc, checked in by uzakmat <uzakmat@…>, 13 years ago

postinst and postrm scripts added into the debian tree

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#!/bin/sh
2# postrm script for helloworld
3#
4# see: dh_installdeb(1)
5
6set -e
7DIR_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
23case "$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    ;;
40esac
41
42# dh_installdeb will replace this with shell code automatically
43# generated by other debhelper scripts.
44
45#DEBHELPER#
46
47exit 0
48
49
Note: See TracBrowser for help on using the repository browser.