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

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

From: Matt Kraai <kraai_at_alumni.cmu.edu>
Date: 2003-05-08 23:10:51 CEST

On Thu, May 08, 2003 at 11:54:25PM +0300, Jani Averbach wrote:
> 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?

The other solutions consume the newline (since they use
backticks). While we're on a roll, for sheer perversity,

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

That's right, "'"$$($( baby!

-- 
Matt Kraai <kraai@alumni.cmu.edu>
Debian GNU/Linux Peon
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 8 23:12:19 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.