postinst is in gnome-nibbles 1:3.24.0-3build1.
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 | #! /bin/sh
set -e
# Clean up old scores files. They are no longer stored system wide
# but in the user's home directory.
if dpkg --compare-versions "$2" lt-nl "1:3.18.2-2" ; then
rm -f /var/games/gnibbles.*.scores
if [ -d /var/games ] ; then
rmdir --ignore-fail-on-non-empty /var/games
fi
fi
|