Hi Peter,

* Peter O'Gorman wrote on Tue, Apr 15, 2008 at 04:54:10PM CEST:
> 
> I looked again, and at first counted all the lines in all the
> changelogs, but then it seemed better to count only what looked like dates.

Better.  I don't mind that multiple commits like this count as one:

2008-xx-xx  User

        * foo: Foo.

        * bar: Bar.


> --- a/libltdl/config/mkstamp
> +++ b/libltdl/config/mkstamp

> +awk 'BEGIN {
> +     cocount=0;
> +}
> +/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]  / {
> +        if (cocount== 0) {
> +                datestr=$1
> +        }
> +     cocount++;
> +}
> +END {
> +     cocount = cocount + 1000;
> +        print "1." cocount " " datestr;
> +}' $1/ChangeLog $1/ChangeLog.*

Please make the latter be $1/ChangeLog.[12][0-9][0-9][0-9] so backup
files don't count (I tend to cp foo foo.bak at times).  OK with that
change.

Thanks,
Ralf


Reply via email to