3df16e39c43d65fb0ffe0d66aa0010b13588928a
[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/install"
8 export PANGO_RC_FILE="$MY_DIRECTORY/Contents/MacOS/install/pangorc"
9 export GDK_PIXBUF_MODULE_FILE="$MY_DIRECTORY/Contents/MacOS/install/gdk-pixbuf.loaders"
10
11 cd "$MY_DIRECTORY/Contents/MacOS/install"
12 if [ -x /usr/bin/open-x11 ]; then
13         /usr/bin/open-x11 ./radiant.ppc "$@" &
14 else
15         ./radiant.ppc "$@" &
16 fi