freebsd-ports/games/daimonin/files/daimonin.sh.in
Pav Lucistnik 329d477c09 - Update daimonin to 0.10.5
- Split music download to separate port
- Give maintainership to submitter

Submitted by:	J. R. Olroyd <jr@opal.com>
2010-09-27 09:02:17 +00:00

15 lines
390 B
Bash

#!/bin/sh
# /usr/local/bin/daimonin
# FreeBSD wrapper to start daimonin
PORTVERSION=%%PORTVERSION%%
VERSION=${PORTVERSION%.*}
# create home dir in ~/.daimonin/$VERSION and create logs subdir
# to avoid errors from daimonin's own PhysFS code
if [ ! -d ~/.daimonin/$VERSION/logs ]; then
mkdir -p ~/.daimonin/$VERSION/logs
fi
# start game
exec %%PREFIX%%/share/daimonin/daimonin ${@+"$@"}