aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-04-08 07:59:17 -0700
committerMark Ferrell <major@homeonderanged.org>2014-04-08 07:59:17 -0700
commit47995b0219a24d7a7219fa21c6ebdfc689b601c7 (patch)
tree5606f8fddfef9fe6e0f78ffad375c141ad0de83c
parent7bd6ac156b4bdfb1834581adb96efe9b08dc499a (diff)
Properly setup DEBUG variables
-rwxr-xr-xbuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/build b/build
index b11052b..aeae57e 100755
--- a/build
+++ b/build
@@ -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