patches/sauerbraten-02-startup.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2142 2b7259204db3
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2142
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
     1
--- sauerbraten/sauerbraten_unix.orig	2009-09-08 12:25:58.955974815 +0100
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
     2
+++ sauerbraten/sauerbraten_unix	2009-09-08 12:27:21.642128911 +0100
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
     3
@@ -2,7 +2,7 @@
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
     4
 # SAUER_DATA should refer to the directory in which Sauerbraten data files are placed.
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
     5
 #SAUER_DATA=~/sauerbraten
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
     6
 #SAUER_DATA=/usr/local/sauerbraten
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
     7
-SAUER_DATA=.
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
     8
+SAUER_DATA=/usr/share/sauerbraten
300
eb1e1c72f082 2007-06-05 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     9
 
2142
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
    10
 # SAUER_BIN should refer to the directory in which Sauerbraten executable files are placed.
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
    11
 SAUER_BIN=${SAUER_DATA}/bin_unix
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
    12
@@ -52,6 +52,7 @@
300
eb1e1c72f082 2007-06-05 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    13
 
2142
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
    14
 if [ -x ${SAUER_BIN}/${SYSTEM_NAME}${MACHINE_NAME}client ]
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
    15
 then
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
    16
+  unset LANG # Solaris Bug
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
    17
   cd ${SAUER_DATA}
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
    18
   exec ${SAUER_BIN}/${SYSTEM_NAME}${MACHINE_NAME}client ${SAUER_OPTIONS} "$@"
2b7259204db3 2009-09-08 Doug Scott <[email protected]>
drdoug007
parents: 300
diff changeset
    19
 else