dfhack/package/darwin/dfhack

19 lines
526 B
Plaintext

2012-06-14 07:56:54 -06:00
#!/bin/sh
PWD=`dirname "${0}"`
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
export DYLD_LIBRARY_PATH="./hack:./libs:./hack/libs"
export DYLD_FRAMEWORK_PATH="./hack:./libs:./hack/libs"
2012-06-14 07:56:54 -06:00
else
export DYLD_FALLBACK_LIBRARY_PATH="./hack:./libs:./hack/libs"
export DYLD_FALLBACK_FRAMEWORK_PATH="./hack:./libs:./hack/libs"
2012-06-14 07:56:54 -06:00
fi
old_tty_settings=$(stty -g)
DYLD_INSERT_LIBRARIES=./hack/libdfhack.dylib ./dwarfort.exe "$@"
stty "$old_tty_settings"
2016-05-14 17:39:10 -06:00
tput sgr0
echo ""