summaryrefslogtreecommitdiff
path: root/contrib/gcc_build
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-03 20:56:05 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-03 20:56:05 +0000
commitc4678f36eac78457d1864f9551009f88582f3362 (patch)
tree4e7a74737a6f53cedf58315a271cea6e86788640 /contrib/gcc_build
parent42e07529247dbd05d4dfd64340cda771b66a0f59 (diff)
downloadgcc-c4678f36eac78457d1864f9551009f88582f3362.tar.gz
* gcc_build: Fix my previous checking.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106449 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/gcc_build')
-rwxr-xr-xcontrib/gcc_build7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/gcc_build b/contrib/gcc_build
index 7ad2484e216..899ae3ecd08 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