postrm is in xonix 1.4-31.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/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
# Automatically added by dh_installmenu
if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
# End automatically added section
|