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

[TSVN] Re: Feature Request: SubWCRev reads a config file...

From: Jens Scheidtmann <Jens.Scheidtmann_at_bayerbbs.com>
Date: 2005-08-11 10:29:52 CEST

Peter Mounce <pete@molehole.org> writes:

[...]
>> May I ask what you need that for?
>
> Yes ;) I'd like to be able to specify the version number in just one
> place. So $V_MAJOR$ would be major version number, $V_MINOR$ ... etc.
> Then tell the tool to find-and-replace the tokens in files where the
> tokens are known to be.
>
> This would make the release procedure easier, in that the person doing
> it doesn't have to edit the version number for the release in more than
> one place. Currently, I think the numbers appear in:
> * src/version.in
> * src/TortoiseSVNSetup/VersionNumberInclude.in.wxi
> * src/TortoiseSVNSetup/MakeMsiSub.in.bat (twice) (they'd be in there so
> the rename from Setup.msi to TortoiseSVN-x.y.z....msi happens automatically)
> * www/version.txt
>
> Ideally, they'd only be in one place, and the first thing the build
> script would do is read the file and substitute, so the builder person
> doesn't run the risk of forgetting in one or more places. I guess it's
> not a need, but a nice-to-have...?

If you were using linux, your tool would be called configure / autoconf /
automake. This uses the M4 macro processor.

As a side note: You could use the C preprocessor, which is part of
VS.NET.

Jens

-- 
Jens.Scheidtmann@bayerbbs.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Aug 11 10:30:56 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.