fix MD3 model entities crash on OS X (by renaming a class; apparently something weird...
[xonotic/netradiant.git] / setup / data / osx / NetRadiant.app / Contents / MacOS / netradiant.sh
1 #!/bin/sh
2
3 MY_DIRECTORY="${0%/*}" # cut off the script name
4 MY_DIRECTORY="${MY_DIRECTORY%/*}" # cut off MacOS
5 MY_DIRECTORY="${MY_DIRECTORY%/*}" # cut off Contents
6
7 #export DYLD_LIBRARY_PATH="$MY_DIRECTORY/Contents/MacOS"
8
9 cd "$MY_DIRECTORY/Contents/MacOS/install"
10 if [ -x /usr/bin/open-x11 ]; then
11         exec /usr/bin/open-x11 ./radiant.ppc
12 else
13         exec ./radiant.ppc
14 fi