New Apple OS X application bundle based on work done for GtkRadiant 1.6.4. Produces...
[xonotic/netradiant.git] / setup / data / osx / NetRadiant.app / Contents / MacOS / radiant
1 #!/bin/bash
2
3 RADIANT_HOME=$(dirname "$0")
4 RADIANT_HOME=${RADIANT_HOME/NetRadiant.app*/NetRadiant.app}
5
6 echo
7 echo "Starting NetRadiant in ${RADIANT_HOME}"
8 echo
9
10 set -x
11
12 resources="${RADIANT_HOME}/Contents/Resources"
13
14 export FONTCONFIG_PATH="${resources}/etc/fonts"
15 export FC_DEBUG=1024
16
17 export GDK_GL_LIBGL_PATH="${resources}/lib/libGL.1.dylib"
18 export GDK_GL_LIBGLU_PATH="${resources}/lib/libGLU.1.dylib"
19
20 export GDK_PATH="${resources}"
21 export GDK_PIXBUF_MODULE_FILE="${resources}/etc/gtk-2.0/gdk-pixbuf.loaders"
22
23 export GOBJECT_PATH="${resources}"
24
25 export GTK_DATA_PREFIX="${resources}"
26 export GTK_EXE_PREFIX="${resources}"
27 export GTK_PATH="${resources}"
28
29 export PANGO_SYSCONFDIR="${resources}/etc"
30 export PANGO_LIBDIR="${resources}/lib"
31
32 cd "${resources}/install"
33 ./radiant &
34
35 set +x