This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Report branch/revsion info from "gcc -v"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]