preinst is in phalanx 22+d051004-13.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 12 13 14 15 16 17 18 | #!/bin/sh
set -e
LEARNFILE=/var/games/phalanx.learn
OLDLEARNFILE=/var/lib/games/phalanx.learn
# Move the learning file
if test -e $OLDLEARNFILE; then
if test ! -e $LEARNFILE; then
if test ! -d /var/games; then
mkdir /var/games
chmod 755 /var/games
fi
mv $OLDLEARNFILE $LEARNFILE
fi
fi
|