[pitivi] script: Add option to force autogen of modules
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] script: Add option to force autogen of modules
- Date: Sat, 25 May 2013 13:48:19 +0000 (UTC)
commit 95ad90247ab0f19a2a7a1015e674fb257f984ba6
Author: Joris Valette <joris valette gmail com>
Date: Wed May 22 22:32:44 2013 +0200
script: Add option to force autogen of modules
bin/pitivi-git-environment.sh | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/bin/pitivi-git-environment.sh b/bin/pitivi-git-environment.sh
index 61d5766..0c42265 100755
--- a/bin/pitivi-git-environment.sh
+++ b/bin/pitivi-git-environment.sh
@@ -183,8 +183,11 @@ export PYTHONPATH
# Force build to happen automatically if the folders are missing
-# or if the --build parameter is used:
+# or if the --build parameter is used, or --force-autogen.
+# The difference being --force-autogen forces autogen.sh to be run,
+# whereas --build only uses it the first time
ready_to_run=0
+force_autogen=1
if test ! -d $PITIVI; then
echo "===================================================================="
@@ -201,12 +204,15 @@ if test ! -d $PITIVI; then
if [ $? -ne 0 ]; then
exit 1
fi
-elif [ "$1" != "--build" ]; then
+elif [ "$1" == "--build" ]; then
+ # Only build modules without using autogen if not necessary, to save time
+ force_autogen=0
+elif [ "$1" != "--force-autogen" ]; then
# The folders existed, and the user just wants to set the shell environment
ready_to_run=1
+ force_autogen=0
fi
-
if [ "$ready_to_run" != "1" ]; then
cd $PITIVI
for m in $MODULES_CORE
@@ -261,7 +267,7 @@ if [ "$ready_to_run" != "1" ]; then
# Now compile that module
- if test ! -f ./configure; then
+ if test ! -f ./configure || [ "$force_autogen" == "1" ]; then
./autogen.sh --prefix=$PITIVI/prefix --disable-gtk-doc --with-python=python2
if [ $? -ne 0 ]; then
echo "Could not run autogen for $m ; result: $?"
@@ -330,7 +336,7 @@ if [ "$ready_to_run" != "1" ]; then
fi
fi
- if test ! -f ./configure; then
+ if test ! -f ./configure || [ "$force_autogen" == "1" ]; then
if $BUILD_DOCS; then
./autogen.sh
else
@@ -358,7 +364,7 @@ if [ "$ready_to_run" != "1" ]; then
fi
cd pitivi
- if test ! -f ./configure; then
+ if test ! -f ./configure || [ "$force_autogen" == "1" ]; then
./autogen.sh
if [ $? -ne 0 ]; then
echo "Could not run autogen for Pitivi ; result: $?"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]