From a7bf97b5ce32a4fdbed0b77e192144b0c9362fdc Mon Sep 17 00:00:00 2001 From: ac_stef Date: Mon, 18 May 2009 18:43:43 +0000 Subject: [PATCH] easier use of commandline parameter file git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4407 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- server.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server.sh b/server.sh index 1e7d6c88..02c2de58 100755 --- a/server.sh +++ b/server.sh @@ -7,6 +7,9 @@ CUBE_DIR=./ # CUBE_OPTIONS contains any command line options you would like to start Cube with. CUBE_OPTIONS= +# uncomment this to read command line options from config/servercmdline.txt +#CUBE_OPTIONFILE=-Cconfig/servercmdline.txt + # SYSTEM_NAME should be set to the name of your operating system. #SYSTEM_NAME=Linux SYSTEM_NAME=`uname -s` @@ -49,7 +52,7 @@ fi if [ -x ${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server ] then cd ${CUBE_DIR} - exec ${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server ${CUBE_OPTIONS} "$@" + exec ${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server ${CUBE_OPTIONS} ${CUBE_OPTIONFILE} "$@" else echo "Your platform does not have a pre-compiled Cube server." echo "Please follow the following steps to build a native server:"