3 export DYLD_LIBRARY_PATH="${0%/*}"
4 # same dir as the executable
6 set -- "$0"-bin "$@" -notexturenonpoweroftwo
8 case "`sw_vers -productVersion`" in
9 # OSX Lion has problems with SDL and running fullscreen, hence we force windowed mode
11 exec "$@" +vid_fullscreen 0
13 # shell pattern for "10.6 and higher"
14 10.[6-9]*|10.[1-5][0-9]*|1[1-9]*|[2-9]*)
15 # no workaround needed on 10.6+
19 # need to force a 32bit arch on 10.5 and below
20 exec arch -arch i386 -arch ppc "$@"