postinst is in gnome-nibbles 1:3.8.0-2.
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 21 22 23 24 25 26 | #! /bin/sh
set -e
if [ "$1" = "configure" ] ; then
if [ ! -d /var/games ]; then
mkdir /var/games
fi
for FILE in gnibbles.1.0.scores gnibbles.2.0.scores \
gnibbles.3.0.scores gnibbles.4.0.scores gnibbles.1.1.scores \
gnibbles.2.1.scores gnibbles.3.1.scores gnibbles.4.1.scores; do
if [ -e /var/games/$FILE ]; then
continue
fi
touch /var/games/$FILE
chown root:games /var/games/$FILE
chmod 664 /var/games/$FILE
done
fi
# Automatically added by dh_icons
if which update-icon-caches >/dev/null 2>&1 ; then
update-icon-caches /usr/share/icons/HighContrast
fi
# End automatically added section
|