Debian Codegraph @

debian/gtkballs.postinst

raw
1 #! /bin/sh
2
3 set -e
4
5 case "$1" in
6 configure)
7 # delete old shared high score file if it was empty
8 if [ -d /var/games ]
9 then
10 find /var/games -name gtkballs-scores -type f -empty -delete
11 rmdir --ignore-fail-on-non-empty /var/games/
12 fi
13 ;;
14
15 abort-upgrade|abort-remove|abort-deconfigure)
16
17 ;;
18
19 *)
20 echo "postinst called with unknown argument \`$1'" >&2
21 exit 1
22 ;;
23 esac
24
25 #DEBHELPER#