freebsd-ports/games/redeclipse/files/bfserver.in
Dmitry Marakasov 011faf9169 Single-player and multi-player first-person shooter, built as a
total conversion of Cube Engine 2, which lends itself toward a
balanced gameplay, completely at the control of map makers, while
maintaining a general theme of tactics and low gravity.

WWW:	http://www.bloodfrontier.com/
2009-12-21 09:28:57 +00:00

18 lines
586 B
Bash

#!/bin/sh
# The executable needs to be run from its data directory, and needs to store
# configuration in it. We therefore mirror the data directory hierarchy in
# ~/.bloodfrontier, and create symlinks to the data files.
if [ -d ~/.bloodfrontier ]
then
echo "Using existing ~/.bloodfrontier directory."
else
echo "Creating ~/.bloodfrontier directory."
cd %%DATADIR%% || exit 1
find * -type d -exec mkdir -p ~/.bloodfrontier/{} \;
find * -type f -exec ln -s %%DATADIR%%/{} ~/.bloodfrontier/{} \; 2>/dev/null
fi
cd ~/.bloodfrontier || exit 1
exec %%PREFIX%%/libexec/bfserver "$@"