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

Re: svn commit: r1033290 - /subversion/trunk/Makefile.in

From: Stefan Sperling <stsp_at_apache.org>
Date: Wed, 10 Nov 2010 19:52:58 +0100

On Wed, Nov 10, 2010 at 04:36:02AM -0600, Peter Samuelson wrote:
>
> [stsp_at_apache.org]
> > --- subversion/trunk/Makefile.in (original)
> > +++ subversion/trunk/Makefile.in Tue Nov 9 23:23:10 2010
> > @@ -413,15 +413,11 @@ local-install: @INSTALL_RULES@
> > ### HACK!! Find a better way to do this
> > revision-install:
> > subversion/svnversion/svnversion $(top_srcdir) $(TRUNK_TRAIL_URL) > \
> > - $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt; \
> > - if test "$$?" != "0"; then \
> > + $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt || \
> > svnversion $(top_srcdir) $(TRUNK_TRAIL_URL) > \
> > - $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt; \
> > - if test "$$?" != "0"; then \
> > + $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt || \
> > echo "unknown" > \
> > - $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt; \
> > - fi; \
> > - fi;
> > + $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt
>
> Stefan, could you test this version on a BSD as well? Should do
> exactly the same thing, and I think it's a little cleaner.

+1, works with BSD make. Thanks!
 
> Peter
>
> [[[
> * Makefile.in
> (revision-install): Followup r1033290 with an equivalent but slightly
> cleaner way to write svn-revision.txt.
> ]]]
> Index: Makefile.in
> ===================================================================
> --- Makefile.in (revisione 1033405)
> +++ Makefile.in (copia locale)
> @@ -412,12 +412,10 @@
>
> ### HACK!! Find a better way to do this
> revision-install:
> - subversion/svnversion/svnversion $(top_srcdir) $(TRUNK_TRAIL_URL) > \
> - $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt || \
> - svnversion $(top_srcdir) $(TRUNK_TRAIL_URL) > \
> - $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt || \
> - echo "unknown" > \
> - $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt
> + (subversion/svnversion/svnversion $(top_srcdir) $(TRUNK_TRAIL_URL) || \
> + svnversion $(top_srcdir) $(TRUNK_TRAIL_URL) || \
> + echo "unknown"; \
> + ) > $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt
>
> install-static: @INSTALL_STATIC_RULES@
>
Received on 2010-11-10 19:54:47 CET

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.