scripts/cvs-update.sh: Pass arguments to make.
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 20 Jun 2008 16:29:23 +0000 (16:29 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 20 Jun 2008 16:29:23 +0000 (16:29 +0000)
Original commit message from CVS:
* scripts/cvs-update.sh:
Pass arguments to make.
Run autoregen.sh if Makefile is not there.

ChangeLog
scripts/cvs-update.sh

index 70043b7..ec1ec6c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-06-20  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+       * scripts/cvs-update.sh:
+         Pass arguments to make.
+         Run autoregen.sh if Makefile is not there.
+
+2008-06-20  Thomas Vander Stichele  <thomas at apestaart dot org>
+
        * configure.ac:
        * gst/gstinfo.c:
          Don't assume that <valgrind/valgrind.h> exists just because
index fb8ea28..a0437e1 100755 (executable)
@@ -23,14 +23,26 @@ for m in \
       cd ..
       continue
     fi
-    make
+    if test ! -e Makefile
+    then
+      ./autoregen.sh
+      if test $? -ne 0
+      then
+        FAILURE="$FAILURE$m: autoregen.sh\n"
+        cd ..
+        continue
+      fi
+    fi
+
+    make $@
     if test $? -ne 0
     then
       FAILURE="$FAILURE$m: make\n"
       cd ..
       continue
     fi
-    make check
+
+    make $@ check
     if test $? -ne 0
     then
       FAILURE="$FAILURE$m: check\n"