postinst is in gnome-robots 1:3.22.3-1.
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.1-2" ; then
rm -f /var/games/gnobots2.*.scores
if [ -d /var/games ] ; then
rmdir --ignore-fail-on-non-empty /var/games
fi
fi
|