[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Is svnversion misbehaving (there is newline at the end)? (WAS; Re: doc/book request)

From: Jani Averbach <jaa_at_cc.jyu.fi>
Date: 2003-05-08 22:54:25 CEST

On Thu, 8 May 2003, Bruce A. Mah wrote:

> > Would
> >
> > echo '<!ENTITY svn.version "'`$(SVNVERSION) .`'">' > $(BOOK_VERSION_SOURCE)
> >
> > work?
>
> I didn't think so at first, which is why I did the printf thing.
> But it does! It also has the distinction of using all three shell
> quoting characters adjacent to each other (twice).

Oh well, paint it blue!

echo -n '<!ENTITY svn.version "' > $(BOOK_VERSION_SOURCE)
$(SVNVERSION) . >> $(BOOK_VERSION_SOURCE)
echo '">' >> $(BOOK_VERSION_SOURCE)

Which will print:
<!ENTITY svn.version "5843
">

Hmm, should svnversion _not_ to print last \n? What do you think?

BR, Jani

-- 
Jani Averbach
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 8 22:55:22 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.