Get rid of OS X path restrictions (see package/linux/dfhack)

develop
lethosor 2016-07-12 14:54:06 -04:00
parent e357d9e40b
commit eef66b0db1
2 changed files with 4 additions and 6 deletions

@ -50,8 +50,6 @@ Installing DFhack involves copying files from a release archive
into your DF folder, so that: into your DF folder, so that:
* On Windows, ``SDL.dll`` is replaced * On Windows, ``SDL.dll`` is replaced
Additionally, on OSX, make sure that the directories in the DF folder path do not contain any '/' or ':' characters.
* On Linux or OS X, the ``dfhack`` script is placed in the same folder as the ``df`` script * On Linux or OS X, the ``dfhack`` script is placed in the same folder as the ``df`` script
Uninstalling is basically the same, in reverse: Uninstalling is basically the same, in reverse:

@ -4,11 +4,11 @@ cd "${PWD}"
#thanks to Iriel for figuring this out #thanks to Iriel for figuring this out
OSREV=`uname -r | cut -d. -f1` OSREV=`uname -r | cut -d. -f1`
if [ "$OSREV" -ge 11 ] ; then if [ "$OSREV" -ge 11 ] ; then
export DYLD_LIBRARY_PATH="${PWD}/hack:${PWD}/libs:${PWD}/hack/libs" export DYLD_LIBRARY_PATH="./hack:./libs:./hack/libs"
export DYLD_FRAMEWORK_PATH="${PWD}/hack:${PWD}/libs:${PWD}/hack/libs" export DYLD_FRAMEWORK_PATH="./hack:./libs:./hack/libs"
else else
export DYLD_FALLBACK_LIBRARY_PATH="${PWD}/hack:${PWD}/libs:${PWD}/hack/libs" export DYLD_FALLBACK_LIBRARY_PATH="./hack:./libs:./hack/libs"
export DYLD_FALLBACK_FRAMEWORK_PATH="${PWD}/hack:${PWD}/libs:${PWD}/hack/libs" export DYLD_FALLBACK_FRAMEWORK_PATH="./hack:./libs:./hack/libs"
fi fi
old_tty_settings=$(stty -g) old_tty_settings=$(stty -g)