Hi Peter, * Peter O'Gorman wrote on Tue, Apr 15, 2008 at 05:43:36AM CEST: > * Makefile.am: Expect mkstamp to return only rev date. > * libltdl/config/mkstamp: return a revision and date based on the > number of lines in the input and the topmost date.
Hmm, I was almost saying "OK", except the last nit below: > +# Generate a revision that looks similar to CVS revision by using 1. > +# then the last 2 digits of the year +30 (so that the revision number Two digit will *always* be enough, just like 640K! ;-) > +# is greater than the last cvs revision, and the number of lines > +# in the ChangeLog. For those pulling from the savannah git repository > +# it should be possible to go from this revision number to the git > +# revision fairly easily. The number will also always increase,e ven s/e ven/ even/ > +# when we rotate ChangeLogs in the new year. But how do you ensure @MACRO_SERIAL@ increases after ChangeLog rotation? > +awk 'BEGIN { > + dated=0; > +} > +/^20/ { > + if (dated == 0) { > + dated=1; > + datestr=$1; > + } > +} > +END { > + yr=substr(datestr,3,2) + 30; > + print "1." yr NR " " datestr; > +}'