command-line arguments cleanup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1502 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+5
-1
@@ -4,6 +4,10 @@
|
|||||||
#CUBE_DIR=/usr/local/cube
|
#CUBE_DIR=/usr/local/cube
|
||||||
CUBE_DIR=./
|
CUBE_DIR=./
|
||||||
|
|
||||||
|
# CUBE_OPTIONS contains any command line options you would like to start Sauerbraten with.
|
||||||
|
#CUBE_OPTIONS="-f"
|
||||||
|
CUBE_OPTIONS="--home=${HOME}/.assaultcube --init"
|
||||||
|
|
||||||
# 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`
|
||||||
@@ -43,7 +47,7 @@ fi
|
|||||||
if [ -x ${CUBE_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client ]
|
if [ -x ${CUBE_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client ]
|
||||||
then
|
then
|
||||||
cd ${CUBE_DIR}
|
cd ${CUBE_DIR}
|
||||||
exec ${CUBE_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client --init $*
|
exec ${CUBE_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client ${CUBE_OPTIONS} $@
|
||||||
else
|
else
|
||||||
echo "Your platform does not have a pre-compiled Cube client."
|
echo "Your platform does not have a pre-compiled Cube client."
|
||||||
echo "Please follow the following steps to build a native client:"
|
echo "Please follow the following steps to build a native client:"
|
||||||
|
|||||||
Reference in New Issue
Block a user