preinst is in bastet 0.43-4build1.
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
# preinst script for bastet
set -e
oldscores=/var/games/bastet.scores
case "$1" in
install|upgrade)
# 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 "$oldscores" ] ; then
cp -p "$oldscores" "$oldscores.tmp"
fi
;;
esac
exit 0
|