Re: [Audacity-devel] Naming of rcs (in About Dialog)
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Richard A. <ri...@au...> - 2010-03-30 16:44:21
|
On Tue, 2010-03-30 at 10:04 -0600, Al Dimond wrote: > On Tuesday 30 March 2010 07:02:58 Alan Horstmann wrote: > > There is not intended to be anything for automatic upgrade etc, > > just that a user can report exact build eg for bug reports. The > > TIME is also important here, so that there is a date+time string > > that will uniquely identify a build. > Ah. So it's like how our nightly builds work. Since we're using that > naming scheme for those builds I think we should use an explicitly > numbered scheme for What I'd like to do is use the SVN revision they are built from to identify all builds (in the About box, alongside or instead of the date/time). I've just got to think through the implications of this for the sorts of builds we do. > There's still a problem with our source releases; as far as I can tell > they'll report the date of the last AboutDialog.cpp build in the > dialog. True, it's one of the things I'd like to change by using the SVN revision, but of course SVN metadata isn't present in tarballs. I think we have three cases that matter: * Windows builds from SVN * configure builds from SVN * configure builds from tarball. I'm assuming that it's reasonable to assume that if someone has an SVN checkout on a configure-based platform then they will also have the svnversion tool to look up the global repository revision number. That is enough to sort configure builds from SVN via some makefile magic and the compiler command line. Tuning the maketarball.sh script will enable us to store the revision the tarball was created from and use that to set the number in the build. This is mainly useful for the distribution releases subsequently built from the tarballs. That leaves getting the version number into source code on Windows. The options are either use the compiler command line (does VC support this?) or massage some source code first, with something like Tortoise's subWCrev: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html That adds another build dependency, unless you are using Tortoise already? Richard |