kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #01490
Re: New developer, SVN commits
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
Dick Hollenbeck <dick@...>
-
Date:
Tue, 29 Apr 2008 15:35:57 -0500
-
In-reply-to:
<20080429160953.UZS7A.4649.imail@fed1rmwml18>
-
User-agent:
Thunderbird 2.0.0.12 (X11/20080227)
kajdas wrote:
What is the -r### number of the build version?
Seems that the build number is a date and -r number and I am sure that build_version.h file can be somehow generated through a script of some sort (weekly, daily,...)
Martin
Martin,
Expanding on your idea, here is a workable solution:
Delete include/build_version.h from the repository altogether.
Add a script that can auto-generate it (include/build_version.h) locally
without internet access from the working copy as in my earlier posting,
using svn info.
Put that script or logic into the CMake build file, so that it becomes
the means of "making" the source file. The script or program needs to
be smart enough to auto-generate it under only one of three conditions:
1) It does not exist.
2) Its date is older than today.
3) Its SVN version number is less than current.
Otherwise if it gets generated more than that, you'd have unwanted
re-compiles.
If we cannot find a platform neutral script language capable of being
this sophisticated (making the 3 tests above), then I would suggest a C
program, one that can be added to the (developer's) project with a CMake
target of its own.
Ta-da.
Dick
Follow ups
References