mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-14 02:45:23 +00:00
2d25ba3ea0
Linux 32bit users can still compile using ./all but releases will no longer include these builds. Reference: http://xonpickbot.designxenon.com:27500/poll/364
24 lines
708 B
Bash
Executable File
24 lines
708 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case "$(uname -m)" in
|
|
i?86) executable="xonotic-linux32-dedicated" ;; # Not supported anymore but you can build your own.
|
|
*) executable="xonotic-linux64-dedicated" ;;
|
|
esac
|
|
|
|
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 "${@}"
|