[pitivi] bin: Allow passing arguments to autogen per module



commit e673e696f455bd2303bb6a4e4e4e6f0fda41f34c
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Tue Apr 1 20:06:07 2014 +0200

    bin: Allow passing arguments to autogen per module

 bin/pitivi-git-environment.sh |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/bin/pitivi-git-environment.sh b/bin/pitivi-git-environment.sh
index 3d60f56..e7fbbdc 100755
--- a/bin/pitivi-git-environment.sh
+++ b/bin/pitivi-git-environment.sh
@@ -416,10 +416,15 @@ if [ "$ready_to_run" != "1" ]; then
         fi
 
         if test ! -f ./configure || [ "$force_autogen" == "1" ]; then
+            # Allow passing per-module arguments when running autogen.
+            # For example, specify the following environment variable
+            # to pass --disable-eglgles to gst-plugins-bad's autogen.sh:
+            #   gst_plugins_bad_AUTOGEN_EXTRA="--disable-eglgles"
+            EXTRA_VAR="$(echo $m | sed "s/-/_/g")_AUTOGEN_EXTRA"
             if $BUILD_DOCS; then
-                ./autogen.sh
+                ./autogen.sh ${!EXTRA_VAR}
             else
-                ./autogen.sh --disable-gtk-doc --disable-docbook
+                ./autogen.sh --disable-gtk-doc --disable-docbook ${!EXTRA_VAR}
             fi
             if [ $? -ne 0 ]; then
                 echo "Could not run autogen for $m ; result: $?"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]