B-CK ANDREAS/TKELOV96ORD wrote:
> 
> Is there any ready done script or function for CVS
> that produces a list of all files with a certain label, BOM
> 
> Ex.
> script(version)
> -----------------------------------
>  filename               revision
> ----------------------------------
> foo.c   1.1.1


I wrote one in Perl a while back, and I know someone else
who just wrote another one more recently.  Is this a
recurring issue?

The one I wrote was only a start of something, though I
did find it useful.  I named it "mkvdd".  The vdd part was
named, for reasons too lengthy to explain here, for Version 
Description Database (although it is really a file).

A VDD file, or BOM, conceptually, is not much different from
a tag applied to your sources.  But if you want to avoid
having too many tags, this is one way to address it.

I also have a "vdiff" perl script that does a diff between
to vdd files made by mkvdd.  My mkvdd script itself is not
very complete, as it needs to read a list of pathnames (of
comma-v files) that were generated externally, which could
be a find.  (It would be easy to add it into the script.)

When I used it (a while back now), I could give it tag names
and get two vdd files out of it, then run vdiff to find the
differences between them.  _MAIN_ was my special tag invention
at the time, it should be renamed to HEAD.  Like this...

  mkvdd.pl -t branch_1  > branch_1.vdd
  mkvdd.pl -t _MAIN_   > main.vdd

  vdiff.pl -v main.vdd branch_1.vdd > main-branch1.vdiff

I'd be willing to treat this stuff in a GPL licensing way
and send it out, if there's an interest.  At the moment, I'd
have to dig it up and put it into a tarball, and then someone
else would have to polish it off--I don't have the time right
now.  The main problem at the moment is that mkvdd uses a
hard-coded path name where it finds the comma-v file list (I
was in a hurry when I wrote it, too).

I can send it out to whoever wants it.  Let me know via email
to <[EMAIL PROTECTED]> and I send you a tarball attachment in
the reply.  Put something like "request of mkvdd..." in the
subject line so I can quickly spot it (I get a lot of email).

wade

Reply via email to