2 # SAUER_DIR should refer to the directory in which Sauerbraten is placed.
3 #SAUER_DIR=~/sauerbraten
4 #SAUER_DIR=/usr/local/sauerbraten
7 # SAUER_OPTIONS contains any command line options you would like to start Sauerbraten with.
9 SAUER_OPTIONS
="-q${HOME}/.sauerbraten -r"
11 # SYSTEM_NAME should be set to the name of your operating system.
13 SYSTEM_NAME
=`uname -s`
15 # MACHINE_NAME should be set to the name of your processor.
17 MACHINE_NAME
=`uname -m`
19 case ${SYSTEM_NAME} in
28 case ${MACHINE_NAME} in
33 if [ ${SYSTEM_NAME} != native_
]
41 if [ -x ${SAUER_DIR}/bin_unix
/native_client
]
47 if [ -x ${SAUER_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client
]
50 exec ${SAUER_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client ${SAUER_OPTIONS} $@
52 echo "Your platform does not have a pre-compiled Sauerbraten client."
53 echo "Please follow the following steps to build a native client:"
54 echo "1) Ensure you have the SDL, SDL-image, SDL-mixer, and OpenGL libraries installed."
55 echo "2) Change directory to src/ and type \"make install\"."
56 echo "3) If the build succeeds, return to this directory and run this script again."