File: postrm

package info (click to toggle)
xonix 1.4-26
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 556 kB
  • ctags: 824
  • sloc: ansic: 6,550; sh: 28; makefile: 26
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#