I receive numerous complaints that my attachment was not generally
accessible because "BINHEX isn't as well known as Mime encoding". :(
Sorry.  Although I've been software engineering for 20+ years, I'm not
a very sophisticated software user.  I know enough about my e-mail
program to find the Attach button -- didn't know there were so many
options.

I've repeated my original message to provide context.  The script file
is attached in what I hope will be MIME (base 64) format.  Let me know
if its wrong again.

I'm sorry about the bandwidth I've wasted by posting this same message
several times.  I promise this is the last time.

By the way, I forgot to mention before that this script was developed
on a Sun4 (SunOS 5.6) with CVS 1.10 'Halibut'.  We do not use the
client/server option.  If your system differs from ours then there
is a risk that your cvs log output is different than mine -- thereby
breaking the awk script.

==============================================================

I slapped together an awk script a couple of weeks ago to extract some
simple source metrics from the cvs log.  I noticed that the log entry for
each revision is accompanied by the number of lines added and deleted.
However, these counts don't appear to be useful when files are added or
removed.  The best my tool can do is identify add and remove events so the
user can use some other method to get the necessary information.

For what its worth, I think of these more as "source metrics" than "code
metrics".

Here's how you run my tool on a UNIX system:
     cvs -q log -N -d"dateRange" | log-summary.awk

This tool reports
     number of lines added to text files
     number of lines deleted from text files
     number of programmers doing commits (and their names)
     number of binary files in repository [not limited to "dateRange"]
     number of binary files modified (and their names)
     number of binary files added (and their names)
     number of binary files removed (and their names)
     number of text files modified (and their names)
     number of text files added (and their names)
     number of text files removed (and their names)

By [my] definition, binary files are those with -kb keyword substitution;
text files are those without -kb.
The number of lines added and deleted from text files DO NOT include
contributions from "cvs add" and "cvs remove".
The number of binary files in the repository is the only item reported that
is not limited to the "dateRange".

We don't typically have subdirectories within our cvs modules, so this tool
is not adequately tested for that circumstance.
I'm pretty sure I don't handle files that go into the Attic and later come
out.

I would love to hear of any other deficiencies that y'all find in this
tool.  Improvements and bug fixes would be grand!

(See attached file: log-summary.awk)

log-summary.awk

Reply via email to