Revert "scripts: Allow passing make flags to git-update.sh"
authorArun Raghavan <git@arunraghavan.net>
Mon, 6 Jul 2015 09:01:24 +0000 (14:31 +0530)
committerArun Raghavan <git@arunraghavan.net>
Mon, 6 Jul 2015 09:05:52 +0000 (14:35 +0530)
This reverts commit ab5fdd72129ea61e8dff51cdc0afcccac03ebc2b.

We can use the MAKEFLAGS environment variable to pass options to make,
so avoid adding another mechanism that could be confusing.

scripts/git-update.sh

index 89cb826..aaa738f 100755 (executable)
@@ -18,8 +18,6 @@ EXTRA_MODULES="\
     gst-rtsp-server \
     gst-python"
 
-MAKE_FLAGS=
-
 tmp=${TMPDIR-/tmp}
 tmp=$tmp/git-update.$(date +%Y%m%d-%H%M-).$RANDOM.$RANDOM.$RANDOM.$$
 
@@ -93,7 +91,7 @@ build()
     fi
 
     echo "+ $1: make"
-    make $MAKE_FLAGS > "$tmp/$1-make.log" 2>&1
+    make > "$tmp/$1-make.log" 2>&1
     if test $? -ne 0
     then
       echo "$1: make [$tmp/$1-make.log]" >> $ERROR_LOG
@@ -130,8 +128,6 @@ fi
 exit
 }
 
-MAKE_FLAGS=$@
-
 # build core and base plugins sequentially
 # exit if build fails (excluding checks)
 for m in $CORE; do