diff options
author | 2013-06-22 17:15:46 -0400 | |
---|---|---|
committer | 2013-06-22 17:15:46 -0400 | |
commit | ffd09dfaf5df0edb28cb4d7866db237edfac5926 (patch) | |
tree | e414472da0dda2fa2d23719b63c4a82458a034b1 /scripts/osx/textadept_osx | |
parent | 73dff9f6a5070f92f40782c9cd6f8a7bb54c3edc (diff) | |
download | textadept-ffd09dfaf5df0edb28cb4d7866db237edfac5926.tar.gz textadept-ffd09dfaf5df0edb28cb4d7866db237edfac5926.zip |
Refactored Makefile for release and nightly builds.
Diffstat (limited to 'scripts/osx/textadept_osx')
-rwxr-xr-x | scripts/osx/textadept_osx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/osx/textadept_osx b/scripts/osx/textadept_osx new file mode 100755 index 00000000..d0382fa4 --- /dev/null +++ b/scripts/osx/textadept_osx @@ -0,0 +1,24 @@ +#!/bin/sh +# Copyright 2007-2013 Mitchell mitchell.att.foicica.com. See LICENSE. + +# Set the GTK environment variables of resources within Textadept.app. +bundle=$(cd "$(dirname "$0")/../../" && pwd) +bundle_res="$bundle/Contents/Resources" +export DYLD_LIBRARY_PATH="$bundle_res/lib:$DYLD_LIBRARY_PATH" +export GTK_DATA_PREFIX="$bundle_res" +export GTK_EXE_PREFIX="$bundle_res" +export GTK_PATH="$bundle_res" +export GTK2_RC_FILES="$bundle_res/etc/gtk-2.0/gtkrc" +export GTK_IM_MODULE_FILE="$bundle_res/etc/gtk-2.0/gtk.immodules" +export GDK_PIXBUF_MODULE_FILE="$bundle_res/etc/gtk-2.0/gdk-pixbuf.loaders" +export PANGO_LIBDIR="$bundle_res/lib" +export PANGO_SYSCONFDIR="$bundle_res/etc" +export CHARSETALIASDIR="$bundle_res/lib" + +# Strip out the argument added by OSX. +if [ x`echo "x$1" | sed -e "s/^x-psn_.*//"` == x ]; then shift 1; fi + +# Run Textadept. +textadept=textadept +if [ ! -z $TEXTADEPTJIT ]; then textadept=textadeptjit; fi +exec "$bundle/Contents/MacOS/$textadept" "$@" |