~ubuntu-branches/ubuntu/hardy/gravitywars/hardy

« back to all changes in this revision

Viewing changes to debian/postrm

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar (Debian packages)
  • Date: 2004-07-11 11:48:51 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040711114851-2xcl09fhx9o65ojb
Tags: 1.102-28
* debian/control:
  + Set policy to 3.6.1.1.
* moveship.c:
  + Fixed build with gcc-3.4, thanks to Andreas Jochens (Closes: #258737).
  + Fixed other warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh -e
2
2
 
 
3
PROG=/usr/games/gravitywars
3
4
VARDIR=/var/games/gravitywars
4
5
 
5
 
# Remove high score file on purge.
6
 
if [ "$1" = "purge" ]; then
7
 
        rm -f $VARDIR/hscore.gw
8
 
        rmdir -p $VARDIR 2>/dev/null || true
9
 
fi
 
6
case "$1" in
 
7
  purge|remove)
 
8
    if dpkg-statoverride --list $PROG >/dev/null; then
 
9
      dpkg-statoverride --remove $PROG
 
10
    fi
 
11
    rm -f $VARDIR/hscore.gw
 
12
    rmdir -p $VARDIR 2>/dev/null || true
 
13
    ;;
 
14
  upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
15
    ;;
 
16
  *)
 
17
    echo "postrm called with unknown argument \`$1'" >&2
 
18
    exit 1
 
19
    ;;
 
20
esac
10
21
 
11
22
#DEBHELPER#
 
23