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

Re: doc/book request

From: Bruce A. Mah <bmah_at_packetdesign.com>
Date: 2003-05-08 21:45:04 CEST

If memory serves me right, Greg Stein wrote:
> On Thu, May 08, 2003 at 11:21:51AM -0700, Bruce A. Mah wrote:
> >...
> > +++ doc/book/Makefile (working copy)
> > @@ -3,7 +3,9 @@
> > INSTALL = install
> >
> > ## You shouldn't normally need to edit anything below here.
> > +PRINTF = printf
>
> I don't think this is portable, so...

Like I said, I wasn't sure. The only systems I could check easily are
FreeBSD and Linux.

> > +$(BOOK_VERSION_SOURCE):
> > + $(PRINTF) '<!ENTITY svn.version "%s">' `$(SVNVERSION) .` > $(BOOK_VERSION_SOURCE)
>
> echo '<!ENTITY svn.version "VERSION">' | sed "s/VERSION/`$(SVNVERSION) .`/" > $(BOOK_VERSION_SOURCE)
>
>
> That would be a lot easier if it wasn't for the darned exclamation point :-)

No kidding. :-)

I actually thought of doing it with an awk script but sed works
perfectly well for this.

Thanks,

Bruce.

  • application/pgp-signature attachment: stored
Received on Thu May 8 21:46:46 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.