File: postrm

package info (click to toggle)
xonix 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 592 kB
  • sloc: ansic: 7,515; sh: 28; makefile: 19
file content (18 lines) | stat: -rwxr-xr-x 359 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if [ "$1" = "purge" ]; then

    # Legacy code: old versions

    [ ! -f /var/lib/games/xonix.scores ] || rm -f /var/lib/games/xonix.scores
    [ ! -d /var/lib/games/xonix ] || rm -rf /var/lib/games/xonix
    [ ! -d /var/games ] || rmdir /var/games || :

    if [ -d /var/cache/xonix ]; then
	rm -rf /var/cache/xonix
    fi
fi

#DEBHELPER#