xonotic/server/server_mac.sh
Stephan Stahl 2ec7592650 rm'd further nex-havoc references
replace nex with xonotic in a lot of places
2010-03-30 20:55:57 +00:00

21 lines
566 B
Bash
Executable File

#!/bin/sh
executable="xonotic-osx-dedicated"
cd "`dirname "${0}"`"
if ! [ -x "$executable" ]; then
if [ -x "../$executable" ] && { [ -f ~/.xonotic/data/server.cfg ] || [ -f ../data/server.cfg ]; }; then
cd ..
else
echo "This script is not properly set up yet."
echo "Please refer to the instructions in readme.txt."
echo "In short:"
echo "- copy server.cfg to the data directory and adjust its settings"
echo "- move this file to the main directory of your Xonotic installation"
exit 1
fi
fi
exec ./${executable} +serverconfig server.cfg "${@}"