changeset 58:b589c9b21c44 draft

build.sh set EXTRA_VERBOSE make flag for trunk, 6 or 7.
author Mark Wielaard <mark@klomp.org>
date Tue, 03 Jun 2014 10:17:14 +0200
parents 53aff698b341
children fea2b60ab331
files icedtea/build.sh
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/icedtea/build.sh	Sat Apr 19 18:33:11 2014 +0100
+++ b/icedtea/build.sh	Tue Jun 03 10:17:14 2014 +0200
@@ -26,7 +26,13 @@
 if [ $# -ne 1 ]; then
  echo "build.sh takes one argument 6, 7 or trunk"
  exit -1;
-elif [ "$1" != "6" -a "$1" != "7" -a "$1" != trunk ]; then
+fi
+
+if [ "$1" == "6" -o "$1" == "7" ]; then
+ EXTRA_VERBOSE='VERBOSE=true'
+elif [ "$1" == "trunk" ]; then
+ EXTRA_VERBOSE='LOG=debug'
+else
  echo "build.sh argument must be 6, 7 or trunk"
  exit -1;
 fi
@@ -118,7 +124,7 @@
 	&& cd $ICEDTEA_BUILD_DIR \
 	&& $ICEDTEA_DIR/configure \
 		--enable-nss \
-	&& make VERBOSE=true) 2>&1 | tee $BUILD_LOG_FILE
+	&& make $EXTRA_VERBOSE) 2>&1 | tee $BUILD_LOG_FILE
 BUILD_RESULT=$?
 
 echo "Build result: $BUILD_RESULT"