diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2012-09-11 00:17:13 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2012-09-11 00:17:13 +0200 |
commit | 2dfc64f9f3137cd7522b32a55e6cbcaa672492f6 (patch) | |
tree | 3888173b755beeeb2d45ca1f3bad5fb3409f8c74 /play.sh | |
parent | b68e9b57a92c8463dc1f49c3e3fc575ae9ba63f5 (diff) | |
download | play-2dfc64f9f3137cd7522b32a55e6cbcaa672492f6.tar.gz play-2dfc64f9f3137cd7522b32a55e6cbcaa672492f6.tar.bz2 play-2dfc64f9f3137cd7522b32a55e6cbcaa672492f6.zip |
Move WINEDEBUG to play.sh
Diffstat (limited to 'play.sh')
-rwxr-xr-x | play.sh | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -3,12 +3,13 @@ # variables gathered from the environment {{{1 # debugging -# 0 -> off -# 1 -> log messages (mostly 'eval' calls) and wine debug -# 2 -> 1 + xtrace +# 0 -> off (+ WINEDEBUG=-all) +# 1 -> log messages (mostly 'eval' calls) (+ WINEDEBUG=-all) +# 2 -> log messages (+ default WINEDEBUG) +# 3 -> 2 + xtrace PLAY_DEBUG=${PLAY_DEBUG:-0} -[[ $PLAY_DEBUG == 2 ]] && setopt xtrace +[[ $PLAY_DEBUG == 3 ]] && setopt xtrace # directory we are in PLAY_DIR="${PLAY_DIR:-${0:h}}" @@ -146,6 +147,8 @@ EXPORT () { EENV[WINEPREFIX]='eval echo $PREFIX' ENV[DISPLAY]=":1" +[[ $PLAY_DEBUG -le 1 ]] && ENV[WINEDEBUG]="-all" + # phase functions {{{1 # Array of phases |