OSDN Git Service

include
[pf3gnuchains/gcc-fork.git] / contrib / gcc_build
index 7ad2484..6713066 100755 (executable)
@@ -17,7 +17,7 @@
 #
 # GCC is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
+# the Free Software Foundation; either version 3, or (at your option)
 # any later version.
 #
 # GCC is distributed in the hope that it will be useful,
@@ -201,7 +201,8 @@ SVN_SERVER="gcc.gnu.org"
 # The path to the repository on that server.
 SVN_REPOSITORY="/svn/gcc/"
 # The branch to check out from that server.
-SVN_BRANCH="trunk"
+# Defaults to trunk if no branch is defined with -b.
+SVN_BRANCH=""
 # The SVN protocol to use.
 SVN_PROTOCOL="svn"
 # The username to use when connecting to the server.
@@ -285,8 +286,10 @@ if [ ${CHECKOUT} -eq 0 ] && test -n "${SVN_BRANCH}"; then
 fi
 
 # Validate the branch name.
-if test "${SVN_BRANCH}" != "trunk"; then
+if test -n "${SVN_BRANCH}"; then
     SVN_BRANCH="branches/${SVN_BRANCH}";
+else
+    SVN_BRANCH="trunk";
 fi
 
 # Checkout the tree.