pkg://bastet_0.41-6_armel.deb:18778/postinst
info downloads
#! /bin/sh
# postinst script for bastet
set -e
scores=/var/games/bastet.scores
# old version of bastet (< 0.41-6) will remove high score file
# on upgrade, so rescue it
if $(dpkg --compare-versions "$2" lt-nl 0.41-6) && [ -e "$scores.tmp" ] ; then
mv "$scores.tmp" "$scores"
fi
if [ ! -e "$scores" ] ; then
touch "$scores"
chgrp games "$scores"
chmod 664 "$scores"
fi
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
exit 0