[pitivi] bin: Remove an if statement



commit fc735a39c116023a6023dd463c47607ab50fb5e7
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Fri Jan 10 12:46:52 2014 +0100

    bin: Remove an if statement

 bin/pitivi-git-environment.sh |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/bin/pitivi-git-environment.sh b/bin/pitivi-git-environment.sh
index b3eb683..b5884ee 100755
--- a/bin/pitivi-git-environment.sh
+++ b/bin/pitivi-git-environment.sh
@@ -276,9 +276,9 @@ if test ! -d $PITIVI; then
 fi
 
 if [ "$ready_to_run" != "1" ]; then
-    cd $PITIVI
     for m in $MODULES_CORE
     do
+        cd $PITIVI
         echo ""
         echo "Building $m"
         # If the folder doesn't exist, check out the module. Later on, we will
@@ -352,8 +352,6 @@ if [ "$ready_to_run" != "1" ]; then
                 exit 1
             fi
         fi
-
-        cd ..
     done
 
 
@@ -361,7 +359,8 @@ if [ "$ready_to_run" != "1" ]; then
     # Build all the necessary gstreamer modules.
     for m in $MODULES
     do
-        echo ""
+        cd $PITIVI
+        echo
         echo "Building $m"
         # If the folder doesn't exist, check out the module. Later on, we will
         # update it anyway.
@@ -433,15 +432,10 @@ if [ "$ready_to_run" != "1" ]; then
             echo "Could not compile $m ; result: $?"
             exit 1
         fi
-
-        if [ $m == "gst-devtools" ]; then
-          cd ../..
-        else
-          cd ..
-        fi
     done
 
     # And obviously ... Pitivi itself
+    cd $PITIVI
     if test ! -d $PITIVI/pitivi; then
         git clone git://git.gnome.org/pitivi
     fi


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