[Libreoffice-commits] .: g

Bjoern Michaelsen bmichaelsen at kemper.freedesktop.org
Tue Jul 10 10:10:28 PDT 2012


 g |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

New commits:
commit 79e9a64299d7fb5abafdde5502093b899f36193a
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Tue Jul 10 12:57:01 2012 +0200

    make ./g robust against missing bin/repo-list file
    
    Change-Id: Ib61a679221d0eddea61358024d31c90464dccefb

diff --git a/g b/g
index 11ecaa6..7ec3bda 100755
--- a/g
+++ b/g
@@ -31,6 +31,13 @@ pushd $(dirname $0) > /dev/null
 COREDIR=$(pwd)
 popd > /dev/null
 
+if test -f $COREDIR/bin/repo-list
+then
+	ALLREPOS="core `cat "$COREDIR/bin/repo-list"`"
+else
+	ALLREPOS=core
+fi
+
 refresh_hooks()
 {
     repo=$1
@@ -88,7 +95,7 @@ refresh_hooks()
 
 refresh_all_hooks()
 {
-    repos="core $(cat "$COREDIR/bin/repo-list")"
+    repos="$ALLREPOS"
     for repo in $repos ; do
         refresh_hooks $repo
     done
@@ -239,7 +246,7 @@ done
 # do it!
 DIRS="core $(cd $CLONEDIR ; ls)"
 if [ "$COMMAND" = "clone" ] ; then
-    DIRS=$(cat "$COREDIR/bin/repo-list")
+    DIRS="$ALLREPOS"
 fi
 for REPO in $DIRS ; do
     DIR="$CLONEDIR/$REPO"


More information about the Libreoffice-commits mailing list