1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/powermanga/pkg-install
2013-10-19 00:56:58 +00:00

19 lines
344 B
Bash

#!/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