a question following making-the-subversion-revision-number-visible-in-my-r-scripts
R CMD build PKG
creates a file named as Package_Version.tar.gz according to the fields in DESCRIPTION
.
not only isn't the strictly sequential numbering coming from svn very practical here, but its $REV: number $
format does not respect the number.number-number
structure expected after Version:
.
I think I would want to use the subversion revision number as the third "coordinate" of the package version. the first and second coordinates would be raised by hand at major changes.
but how do you "normally" do?
One could write a bash/grep/awk script that gets the highest Rev out of the sources, that wouldn't a problem. But, is configure
run before R CMD build
? In this case one could build the DESCRIPTION file (kept out of source control) from a template file and this highest Rev number.
My question is about common practice.
the "optimal" answer would allow me to place a package on r-forge and have the automated scripts run there update the third coordinate of the Version:
field from the latest files committed in the R
subdir.
a "good enough" answer would work locally and I have it already, but am not using it any more because I otherwise get used to things that are generally unavailable.
since it's about practices, I'll add my current practice as possible answer. it is not automated but I find it clear and (almost) acceptable.