Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if test "x$IGE_DEBUG_LAUNCHER" != x; then
- set -x
- fi
- if test "x$IGE_DEBUG_GDB" != x; then
- EXEC="gdb --args"
- else
- EXEC=exec
- fi
- name="gtkwave"
- bundle_contents=/Applications/gtkwave.app/Contents
- bundle_res="$bundle_contents"/Resources
- bundle_lib="$bundle_res"/lib
- bundle_bin="$bundle_res"/bin
- bundle_data="$bundle_res"/share
- bundle_etc="$bundle_res"/etc
- export DYLD_LIBRARY_PATH="$bundle_lib"
- export XDG_CONFIG_DIRS="$bundle_etc"/xdg
- export XDG_DATA_DIRS="$bundle_data"
- export GTK_DATA_PREFIX="$bundle_res"
- export GTK_EXE_PREFIX="$bundle_res"
- export GTK_PATH="$bundle_res"
- export GTK2_RC_FILES="$bundle_etc/gtk-2.0/gtkrc"
- export GTK_IM_MODULE_FILE="$bundle_etc/gtk-2.0/gtk.immodules"
- export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-2.0/gdk-pixbuf.loaders"
- export PANGO_RC_FILE="$bundle_etc/pango/pangorc"
- APP=name
- I18NDIR="$bundle_data/locale"
- # Set the locale-related variables appropriately:
- unset LANG LC_MESSAGES
- export LANG="en_US"
- export LC_MESSAGES="en_US"
- #For Gtk, which only looks at LC_ALL:
- export LC_ALL=$LC_MESSAGES
- unset APPLELOCALE FILES LOC
- if test -f "$bundle_lib/charset.alias"; then
- export CHARSETALIASDIR="$bundle_lib"
- fi
- # Extra arguments can be added in environment.sh.
- EXTRA_ARGS=
- if test -f "$bundle_res/environment.sh"; then
- source "$bundle_res/environment.sh"
- fi
- # Strip out the argument added by the OS.
- if [ x`echo "x$1" | sed -e "s/^x-psn_.*//"` == x ]; then
- shift 1
- fi
- # export DLYD_INSERT_LIBRARIES=/usr/lib/libMallocDebug.A.dylib
- # export MallocScribble=YES
- # export MallocPreScribble=YES
- # export MallocGuardEdges=YES
- # export MallocStackLogging=YES
- # export MallocStackLoggingNoCompact=YES
- # export NSZombieEnabled=YES
- # export MallocErrorAbort=YES
- # export MallocCheckHeapEach=100
- # export MallocCheckHeapStart=100
- $EXEC "$bundle_contents/MacOS/$name-bin" $* $EXTRA_ARGS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement