]> git.xonotic.org Git - xonotic/xonotic.git/blob - server/server_mac.sh
if we got one, also pack the .lin file (leak line) with the autobuilds ;)
[xonotic/xonotic.git] / server / server_mac.sh
1 #!/bin/sh
2
3 executable="xonotic-osx-dedicated"
4
5 cd "`dirname "${0}"`"
6
7 if ! [ -x "$executable" ]; then
8         if [ -x "../$executable" ] && { [ -f ~/.xonotic/data/server.cfg ] || [ -f ../data/server.cfg ]; }; then
9                 cd ..
10         else
11                 echo "This script is not properly set up yet."
12                 echo "Please refer to the instructions in readme.txt."
13                 echo "In short:"
14                 echo "- copy server.cfg to the data directory and adjust its settings"
15                 echo "- move this file to the main directory of your Xonotic installation"
16                 exit 1
17         fi
18 fi
19
20 exec ./${executable} +serverconfig server.cfg "${@}"