leo charre


automatically generate change file from cvs

So I had Mark Stosberg note that HTML::Template::Default had no Changes file.

I keep everything in cvs because .. Because otherwise I think I would be in a mental instituion.

So, cvs records changes if you tell it something- as you commit changes.

There is a specific gnu format for a changes file. You will see changefiles in distros like CGI, CGI::Application.. most good distros. And it makes sense, to keep track of stuff. People might want to know what’s up and why. And often I do add comments to my commits.
But, do I have to write this tedious file by hand? Maybe there’s an automatic way to generate this…

Solution: cvs2cl

I tried out cvs2cl, it really works very nicely. This is a great interface via the command line. A lot of people have put work into this project.

How?
First check out your project and cd into it..

# cvs co My-Project
# cd My-Project/

Then run cvs2cl, it will write to ChangeLog by default, I want to write to something else, the perl chagefiles I see are named ‘Changes’.
We will also add the -P option flag to prune (ignore) changes that have no comments.

cvs2cl.pl -P --stdout > Changes

# or..

cvs2cl.pl -P -f Changes

Done. Voila.
Adding the script to my LEOCHARRE::Dev distro. cvs2cl.pl has a make that fails. If you get that error, you can just copy ‘cvs2cl.pl’ it to ‘/home/myself/bin/cvs2cl.pl’ and chmod 0755 to make it executable.


Linux User