OSDN Git Service

download-toolchain-source.sh: use 'master' branch instead of 'eclair' by default.
authorDavid 'Digit' Turner <digit@google.com>
Wed, 31 Mar 2010 22:14:31 +0000 (15:14 -0700)
committerDavid 'Digit' Turner <digit@google.com>
Wed, 31 Mar 2010 22:19:34 +0000 (15:19 -0700)
Change-Id: Ia9bfc633d90d7d613baa286850a6ab5a4e68af30

build/tools/download-toolchain-sources.sh
docs/CHANGES.TXT

index 5d8332d..ffbc065 100755 (executable)
@@ -31,7 +31,7 @@ OPTION_BRANCH=
 RELEASE=`date +%Y%m%d`
 
 # the default branch to use
-BRANCH=eclair
+BRANCH=master
 
 GITCMD=git
 
@@ -161,10 +161,12 @@ toolchain_clone ()
     fi
     log "checking out $BRANCH branch of $1.git"
     cd $1
-    run git checkout -b $BRANCH origin/$BRANCH
-    if [ $? != 0 ] ; then
-        echo "Could not checkout $1 ?"
-        exit 1
+    if [ "$BRANCH" != "master" ] ; then
+        run git checkout -b $BRANCH origin/$BRANCH
+        if [ $? != 0 ] ; then
+            echo "Could not checkout $1 ?"
+            exit 1
+        fi
     fi
     # get rid of .git directory, we won't need it.
     cd ..
index 3f57ef5..29819af 100644 (file)
@@ -45,6 +45,9 @@ OTHER FIXES & CHANGES:
 - docs/STABLE-APIS.TXT: Add missing section for Dynamic Linker Library
   (libdl.so). It is actually supported by all API levels.
 
+- build/tools/download-toolchain-sources.sh: Use 'master' branch by default
+  instead of the 'eclair' one.
+
 -------------------------------------------------------------------------------
 android-ndk-r3