32 lines
625 B
Plaintext
32 lines
625 B
Plaintext
set -e # learned the hard way
|
|
|
|
mkscore() {
|
|
touch var/games/bsdgames/"$1"
|
|
chown root:users var/games/bsdgames/"$1"
|
|
chmod 0664 var/games/bsdgames/"$1"
|
|
}
|
|
|
|
case "${ACTION}" in
|
|
post)
|
|
mkscore atc_score
|
|
mkscore battlestar.log
|
|
mkscore cfscores
|
|
mkscore criblog
|
|
mkscore saillog
|
|
mkscore snake.log
|
|
mkscore snakerawscores
|
|
mkscore tetris-bsd.scores
|
|
mkscore robots_roll
|
|
mkscore phantasia/characs
|
|
mkscore phantasia/gold
|
|
mkscore phantasia/lastdead
|
|
mkscore phantasia/mess
|
|
mkscore phantasia/motd
|
|
mkscore phantasia/scoreboard
|
|
mkscore phantasia/void
|
|
mkscore phantasia/monsters
|
|
mkscore hack/record
|
|
mkscore hack/perm
|
|
;;
|
|
esac
|