Skip to content

Commit

Permalink
tweaked bin directory
Browse files Browse the repository at this point in the history
git-svn-id: https://sauerbraten.svn.sourceforge.net/svnroot/sauerbraten@426 ac1f7847-fce6-4368-a212-70e9bdee79d4
  • Loading branch information
eihrul committed Feb 14, 2009
1 parent e024cf3 commit c500d36
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions sauerbraten_unix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/sh
# SAUER_DIR should refer to the directory in which Sauerbraten is placed.
#SAUER_DIR=~/sauerbraten
#SAUER_DIR=/usr/local/sauerbraten
SAUER_DIR=.
# SAUER_DATA should refer to the directory in which Sauerbraten data files are placed.
#SAUER_DATA=~/sauerbraten
#SAUER_DATA=/usr/local/sauerbraten
SAUER_DATA=.

# SAUER_BIN should refer to the directory in which Sauerbraten executable files are placed.
SAUER_BIN=${SAUER_DATA}/bin_unix

# SAUER_OPTIONS contains any command line options you would like to start Sauerbraten with.
#SAUER_OPTIONS="-f"
Expand Down Expand Up @@ -41,16 +44,16 @@ x86_64)
;;
esac

if [ -x ${SAUER_DIR}/bin_unix/native_client ]
if [ -x ${SAUER_BIN}/native_client ]
then
SYSTEM_NAME=native_
MACHINE_NAME=
fi

if [ -x ${SAUER_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}client ]
if [ -x ${SAUER_BIN}/${SYSTEM_NAME}${MACHINE_NAME}client ]
then
cd ${SAUER_DIR}
exec ${SAUER_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}client ${SAUER_OPTIONS} "$@"
cd ${SAUER_DATA}
exec ${SAUER_BIN}/${SYSTEM_NAME}${MACHINE_NAME}client ${SAUER_OPTIONS} "$@"
else
echo "Your platform does not have a pre-compiled Sauerbraten client."
echo "Please follow the following steps to build a native client:"
Expand Down

0 comments on commit c500d36

Please sign in to comment.