[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: Daniel Stenberg <daniel_at_haxx.se>
Date: 2001-05-30 23:22:54 CEST

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
Received on Sat Oct 21 14:36:31 2006

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