This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Report branch/revsion info from "gcc -v"
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: "H.J. Lu" <hjl at lucon dot org>
- Cc: Andreas Schwab <schwab at suse dot de>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 8 Aug 2007 22:58:02 +0200
- Subject: Re: PATCH: Report branch/revsion info from "gcc -v"
- References: <20070730162648.GA11130@lucon.org> <je4pjl250n.fsf@sykes.suse.de> <20070730172155.GA11553@lucon.org> <jezm1dztoj.fsf@sykes.suse.de> <20070730181745.GA11859@lucon.org> <20070806211540.GC7874@ins.uni-bonn.de> <20070808142157.GA25652@lucon.org>
Hello,
* H.J. Lu wrote on Wed, Aug 08, 2007 at 04:21:57PM CEST:
> On Mon, Aug 06, 2007 at 11:15:41PM +0200, Ralf Wildenhues wrote:
> >
> > POSIX sed requires that there be newlines both right after the `{' and
> > instead of each of the `;' inside the braced commands. No, I don't know
> > whether there exists an interesting sed implementation that needs this
> > (but autotools have been cleaned of this issue AFAIK).
> Like this?
Yes, except you should also drop the backslash in this line:
> +branch=`svn info | sed -ne "/URL:/ {\
because otherwise sed won't ever see the newline. It's ok portability-
wise if you'd like to indent the lines of the sed script for readability.
Thanks,
Ralf