Patchwork gcc_update fix build error

login
register
mail settings
Submitter Mike Stump
Date Aug. 29, 2013, 7:07 p.m.
Message ID <2FAA5500-BF47-47DC-B4B3-D894C96A2DF6@comcast.net>
Download mbox | patch
Permalink /patch/270894/
State New
Headers show

Comments

Mike Stump - Aug. 29, 2013, 7:07 p.m.
This fixes a build error in trunk.  Before:

# cat gcc/REVISION 
[trunk
trunk revision 202083]

and after:

$ cat gcc/REVISION 
[trunk revision 202083]

$ svn info
Path: .
Working Copy Root Path: /Users/mrs/net/gcc
URL: svn+ssh://mrs@gcc.gnu.org/svn/gcc/trunk
Relative URL: ^/trunk
Repository Root: svn+ssh://mrs@gcc.gnu.org/svn/gcc
Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4
Revision: 202083
Node Kind: directory
Schedule: normal
Last Changed Author: timshen
Last Changed Rev: 202082
Last Changed Date: 2013-08-29 11:33:07 -0700 (Thu, 29 Aug 2013)


The Relative URL was messing it up.  This is with svn:

$ svn --version
svn, version 1.8.1 (r1503906)

which required an upgrade on the old repository.

I checked this in.


2013-08-29  Mike Stump  <mikestump@comcast.net>

        * gcc_update (configure): Update to handle svn 1.8.1.

Patch

Index: contrib/gcc_update
===================================================================
--- contrib/gcc_update	(revision 202083)
+++ contrib/gcc_update	(working copy)
@@ -385,7 +385,7 @@  case $vcs_type in
 	fi
 
 	revision=`$GCC_SVN info | awk '/Revision:/ { print $2 }'`
-	branch=`$GCC_SVN info | sed -ne "/URL:/ {
+	branch=`$GCC_SVN info | sed -ne "/^URL:/ {
 	    s,.*/trunk,trunk,
 	    s,.*/branches/,,
 	    s,.*/tags/,,