Log output of "dfhack" script to dfhack.log

develop
lethosor 2014-11-22 10:08:38 -05:00
parent a6b5ffef79
commit 50765dd60f
2 changed files with 2 additions and 2 deletions

@ -12,6 +12,6 @@ fi
old_tty_settings=$(stty -g) old_tty_settings=$(stty -g)
cd "${PWD}" 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" stty "$old_tty_settings"
echo "" echo ""

@ -65,7 +65,7 @@ case "$1" in
ret=$? 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=$? ret=$?
;; ;;
esac esac