You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ben Collins-Sussman <su...@collab.net> on 2001/05/29 19:48:05 UTC
version number
$ svn -v
Subversion, version (client)
compiled May 29 2001, 09:39:27
$ more configure.in
...
#AM_INIT_AUTOMAKE(subversion, "M2 (pre-alpha)", no-define)
...
$ more svn_private_config.h
...
/* Version number of Subversion */
#define SVN_VERSION ""
...
*snif*, *sob*
Any way to get this version number automatically defined without automake? :)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: version number
Posted by Greg Stein <gs...@lyra.org>.
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
Re: version number
Posted by Daniel Stenberg <da...@haxx.se>.
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