You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by gs...@apache.org on 2011/07/02 02:37:14 UTC

svn commit: r1142132 - /incubator/ooo/trunk/tools/dev/fetch-all-cws.sh

Author: gstein
Date: Sat Jul  2 00:37:14 2011
New Revision: 1142132

URL: http://svn.apache.org/viewvc?rev=1142132&view=rev
Log:
No functional change.

* tools/dev/fetch-all-cws.sh: use an 'elif' and adjust indentation

Modified:
    incubator/ooo/trunk/tools/dev/fetch-all-cws.sh

Modified: incubator/ooo/trunk/tools/dev/fetch-all-cws.sh
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/tools/dev/fetch-all-cws.sh?rev=1142132&r1=1142131&r2=1142132&view=diff
==============================================================================
--- incubator/ooo/trunk/tools/dev/fetch-all-cws.sh (original)
+++ incubator/ooo/trunk/tools/dev/fetch-all-cws.sh Sat Jul  2 00:37:14 2011
@@ -67,19 +67,20 @@ for cws in `sed -n '/^cws\//s#^cws/##p' 
     echo "============ '$cws' exists. Pulling ..."
     cd "$cws"
     hg pull "$REPOS/cws/$cws"
+
   elif test -e "$cws" ; then
     echo "ERROR: '$cws' exists and is not a directory."
     exit 1
+
+  # filter out empty CWS: hg incoming returns 1 if there's nothing to pull
+  elif hg -R "$dev300" incoming "$REPOS/cws/$cws" >/dev/null; then
+    echo "============ '$cws' is being created ..."
+    hg clone -U "$dev300" "$cws"
+    cd "$cws"
+    hg pull "$REPOS/cws/$cws"
+
   else
-    # filter out empty CWS: hg incoming returns 1 if there's nothing to pull
-    if hg -R "$dev300" incoming "$REPOS/cws/$cws" >/dev/null; then
-        echo "============ '$cws' is being created ..."
-        hg clone -U "$dev300" "$cws"
-        cd "$cws"
-        hg pull "$REPOS/cws/$cws"
-    else
-        echo "============ '$cws' skipped: nothing to pull ..."
-    fi
+    echo "============ '$cws' skipped: nothing to pull ..."
   fi
 
 done