diff options
author | Mark Ferrell <major@homeonderanged.org> | 2014-04-08 07:59:17 -0700 |
---|---|---|
committer | Mark Ferrell <major@homeonderanged.org> | 2014-04-08 07:59:17 -0700 |
commit | 47995b0219a24d7a7219fa21c6ebdfc689b601c7 (patch) | |
tree | 5606f8fddfef9fe6e0f78ffad375c141ad0de83c | |
parent | 7bd6ac156b4bdfb1834581adb96efe9b08dc499a (diff) |
Properly setup DEBUG variables
-rwxr-xr-x | build | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -116,7 +116,11 @@ if [ -f "${1}" ]; then esac fi -DEBUG="0" +## +# We are being called as 'build [options] <command>'. Setup the environment +# for execution of a sub-command. + +BUILDER_DEBUG=0 while [ "$#" -gt "0" ]; do case "$1" in (-v|-version|--version) version; exit 0;; @@ -131,7 +135,6 @@ while [ "$#" -gt "0" ]; do ;; (-d|-debug|--debug) BUILDER_DEBUG=1 - export BUILDER_DEBUG set -x ;; (-h|-help|--help) @@ -149,6 +152,7 @@ while [ "$#" -gt "0" ]; do shift 1 echo "$@" done +export BUILDER_DEBUG ## # Done with arguments, time for setting up the enviroment for the build |