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

Re: version number

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-05-31 01:12:04 CEST

Woah. Totally missed that :-)

I'll work a solution similar to Daniel's. We'll put the version number into
one of the include/ headers. Suggestions welcome.

Cheers,
-g

On Wed, May 30, 2001 at 11:22:54PM +0200, Daniel Stenberg wrote:
> On 29 May 2001, Ben Collins-Sussman wrote:
>
> > $ more configure.in
> >
> > #AM_INIT_AUTOMAKE(subversion, "M2 (pre-alpha)", no-define)
>
> > $ more svn_private_config.h
> >
> > #define SVN_VERSION ""
>
> > Any way to get this version number automatically defined without
> > automake? :)
>
> One way to solve it:
>
> In a project of mine, I have a little shell script that I run just before
> releases that I enter the version number in. It then stores that in the
> proper header file.
>
> The configure.in then has a construct that extracts the version number from
> that said header file, in a manner like:
>
> VERSION=`sed -ne 's/^#define VERSION "\(.*\)"/\1/p' ${srcdir}/include/version.h`
> AM_INIT_AUTOMAKE(project,$VERSION)
>
> ... it works.
>
> --
> Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
> ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:31 2006

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.