]> git.xonotic.org Git - xonotic/xonotic.git/blob - misc/buildfiles/osx/Xonotic-SDL.app/Contents/MacOS/xonotic-osx-sdl
update OS X startup scripts to force a 32bit arch on SDL and OS X 10.5 or lower
[xonotic/xonotic.git] / misc / buildfiles / osx / Xonotic-SDL.app / Contents / MacOS / xonotic-osx-sdl
1 #!/bin/sh
2
3 export DYLD_LIBRARY_PATH="${0%/*}"
4         # same dir as the executable
5
6 set -- "$0"-bin "$@" -notexturenonpoweroftwo
7
8 case "`sw_vers -productVersion`" in
9         # shell pattern for "10.6 and higher"
10         10.[6-9]*|10.[1-5][0-9]*|1[1-9]*|[2-9]*)
11                 # no workaround needed on 10.6+
12                 exec "$@"
13                 ;;
14         *)
15                 # need to force a 32bit arch on 10.5 and below
16                 exec arch -arch i386 -arch ppc "$@"
17                 ;;
18 esac