aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSteven Bosscher <stevenb@suse.de>2005-11-03 20:56:05 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2005-11-03 20:56:05 +0000
commitf2bd1eb944f85f1bc930791445213f4ce8fae773 (patch)
tree4e7a74737a6f53cedf58315a271cea6e86788640 /contrib
parentb03e9863c9802d3c143c07613be95b0a91518e18 (diff)
downloadgcc-f2bd1eb944f85f1bc930791445213f4ce8fae773.zip
gcc-f2bd1eb944f85f1bc930791445213f4ce8fae773.tar.gz
gcc-f2bd1eb944f85f1bc930791445213f4ce8fae773.tar.bz2
* gcc_build: Fix my previous checking.
From-SVN: r106449
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/gcc_build7
2 files changed, 9 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index caa477c..d3417e6 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-03 Steven Bosscher <stevenb@suse.de>
+
+ * gcc_build: Fix my previous checking.
+
2005-11-01 Joseph S. Myers <joseph@codesourcery.com>
* gcc_update: Include revision number in LAST_UPDATED.
diff --git a/contrib/gcc_build b/contrib/gcc_build
index 7ad2484..899ae3e 100755
--- a/contrib/gcc_build
+++ b/contrib/gcc_build
@@ -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,7 +286,9 @@ 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="trunk";
+else
SVN_BRANCH="branches/${SVN_BRANCH}";
fi