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
This commit is contained in:
@@ -7,6 +7,9 @@ CUBE_DIR=./
|
|||||||
# CUBE_OPTIONS contains any command line options you would like to start Cube with.
|
# CUBE_OPTIONS contains any command line options you would like to start Cube with.
|
||||||
CUBE_OPTIONS=
|
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 should be set to the name of your operating system.
|
||||||
#SYSTEM_NAME=Linux
|
#SYSTEM_NAME=Linux
|
||||||
SYSTEM_NAME=`uname -s`
|
SYSTEM_NAME=`uname -s`
|
||||||
@@ -49,7 +52,7 @@ fi
|
|||||||
if [ -x ${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server ]
|
if [ -x ${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server ]
|
||||||
then
|
then
|
||||||
cd ${CUBE_DIR}
|
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
|
else
|
||||||
echo "Your platform does not have a pre-compiled Cube server."
|
echo "Your platform does not have a pre-compiled Cube server."
|
||||||
echo "Please follow the following steps to build a native server:"
|
echo "Please follow the following steps to build a native server:"
|
||||||
|
|||||||
Reference in New Issue
Block a user