Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2018
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.86 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. if test "x$IGE_DEBUG_LAUNCHER" != x; then
  4.     set -x
  5. fi
  6.  
  7. if test "x$IGE_DEBUG_GDB" != x; then
  8.     EXEC="gdb --args"
  9. else
  10.     EXEC=exec
  11. fi
  12.  
  13. name="gtkwave"
  14. bundle_contents=/Applications/gtkwave.app/Contents
  15.  
  16. bundle_res="$bundle_contents"/Resources
  17. bundle_lib="$bundle_res"/lib
  18. bundle_bin="$bundle_res"/bin
  19. bundle_data="$bundle_res"/share
  20. bundle_etc="$bundle_res"/etc
  21.  
  22. export DYLD_LIBRARY_PATH="$bundle_lib"
  23. export XDG_CONFIG_DIRS="$bundle_etc"/xdg
  24. export XDG_DATA_DIRS="$bundle_data"
  25. export GTK_DATA_PREFIX="$bundle_res"
  26. export GTK_EXE_PREFIX="$bundle_res"
  27. export GTK_PATH="$bundle_res"
  28.  
  29. export GTK2_RC_FILES="$bundle_etc/gtk-2.0/gtkrc"
  30. export GTK_IM_MODULE_FILE="$bundle_etc/gtk-2.0/gtk.immodules"
  31. export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-2.0/gdk-pixbuf.loaders"
  32. export PANGO_RC_FILE="$bundle_etc/pango/pangorc"
  33.  
  34. APP=name
  35. I18NDIR="$bundle_data/locale"
  36.  
  37. # Set the locale-related variables appropriately:
  38. unset LANG LC_MESSAGES
  39.  
  40. export LANG="en_US"
  41. export LC_MESSAGES="en_US"
  42.  
  43. #For Gtk, which only looks at LC_ALL:
  44. export LC_ALL=$LC_MESSAGES
  45.  
  46. unset APPLELOCALE FILES LOC
  47.  
  48. if test -f "$bundle_lib/charset.alias"; then
  49.     export CHARSETALIASDIR="$bundle_lib"
  50. fi
  51.  
  52. # Extra arguments can be added in environment.sh.
  53. EXTRA_ARGS=
  54. if test -f "$bundle_res/environment.sh"; then
  55.   source "$bundle_res/environment.sh"
  56. fi
  57.  
  58. # Strip out the argument added by the OS.
  59. if [ x`echo "x$1" | sed -e "s/^x-psn_.*//"` == x ]; then
  60.     shift 1
  61. fi
  62.  
  63. # export DLYD_INSERT_LIBRARIES=/usr/lib/libMallocDebug.A.dylib
  64. # export MallocScribble=YES
  65. # export MallocPreScribble=YES
  66. # export MallocGuardEdges=YES
  67. # export MallocStackLogging=YES
  68. # export MallocStackLoggingNoCompact=YES
  69. # export NSZombieEnabled=YES
  70. # export MallocErrorAbort=YES
  71. # export MallocCheckHeapEach=100
  72. # export MallocCheckHeapStart=100
  73.  
  74. $EXEC "$bundle_contents/MacOS/$name-bin" $* $EXTRA_ARGS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement