aboutsummaryrefslogblamecommitdiff
path: root/games/powermanga/pkg-install
blob: fe4137f8d7863e1bebebc3bac4aca881816f04fa (plain) (tree)
1
2
3
4
5
6
7
8
9
         

           
 

                                     


                                    
                                    







                                    
#!/bin/sh
#
# $FreeBSD$

SCOREDIR="/var/games/powermanga"
SCOREBASE="${SCOREDIR}/powermanga.hi"

[ "$2" != "POST-INSTALL" ] && exit 0

echo "Creating hiscore directory..."
mkdir -p $SCOREDIR

for suffix in "-easy" "" "-hard"; do
    file="$SCOREBASE$suffix"
    [ ! -f $file ] && touch $file
    chown root:games $file
    chmod 664 $file
done