Merge pull request #401 from lethosor/dfhack-log

Log output of "dfhack" script to dfhack.log
develop
expwnent 2014-11-22 10:34:06 -05:00
commit d0b0f03060
2 changed files with 2 additions and 2 deletions

@ -12,6 +12,6 @@ fi
old_tty_settings=$(stty -g)
cd "${PWD}"
DYLD_INSERT_LIBRARIES=./hack/libdfhack.dylib ./dwarfort.exe "$@"
DYLD_INSERT_LIBRARIES=./hack/libdfhack.dylib ./dwarfort.exe "$@" 2>&1 | tee dfhack.log
stty "$old_tty_settings"
echo ""

@ -65,7 +65,7 @@ case "$1" in
ret=$?
;;
*)
setarch i386 -R env LD_PRELOAD=$PRELOAD_LIB ./libs/Dwarf_Fortress "$@"
setarch i386 -R env LD_PRELOAD=$PRELOAD_LIB ./libs/Dwarf_Fortress "$@" 2>&1 | tee dfhack.log
ret=$?
;;
esac