2012-06-14 07:56:54 -06:00
|
|
|
#!/bin/sh
|
|
|
|
PWD=`dirname "${0}"`
|
2015-01-11 11:53:51 -07:00
|
|
|
cd "${PWD}"
|
2012-06-14 07:56:54 -06:00
|
|
|
#thanks to Iriel for figuring this out
|
|
|
|
OSREV=`uname -r | cut -d. -f1`
|
|
|
|
if [ "$OSREV" -ge 11 ] ; then
|
2015-08-25 12:17:45 -06:00
|
|
|
export DYLD_LIBRARY_PATH=${PWD}/hack:${PWD}/libs:${PWD}/hack/libs
|
|
|
|
export DYLD_FRAMEWORK_PATH=${PWD}/hack:${PWD}/libs:${PWD}/hack/libs
|
2012-06-14 07:56:54 -06:00
|
|
|
else
|
2015-08-25 12:17:45 -06:00
|
|
|
export DYLD_FALLBACK_LIBRARY_PATH=${PWD}/hack:${PWD}/libs:${PWD}/hack/libs
|
|
|
|
export DYLD_FALLBACK_FRAMEWORK_PATH=${PWD}/hack:${PWD}/libs:${PWD}/hack/libs
|
2012-06-14 07:56:54 -06:00
|
|
|
fi
|
2014-05-11 12:42:40 -06:00
|
|
|
|
|
|
|
old_tty_settings=$(stty -g)
|
2014-12-17 15:12:10 -07:00
|
|
|
DYLD_INSERT_LIBRARIES=./hack/libdfhack.dylib ./dwarfort.exe "$@"
|
2014-05-11 12:42:40 -06:00
|
|
|
stty "$old_tty_settings"
|
|
|
|
echo ""
|