Setting up CVS Spam
I think Mike turned me on to CVS Spam. CVS Spam is basically some scripts that send you HTML-formatted e-mails of diffs from CVS commits (example). I got motivated today and installed it on Raible Designs' CVS server and the one at my new gig. Works awesome! Here's the steps I had to take (outside of the documentation):
- Download and install (./configure, make, make install) ruby. By default, this goes into /usr/local/bin/ruby.
- Create a symlink in /usr/bin (ln -s /usr/local/bin/ruby) So the .rb files you added in CVSROOT will work. They're pointing to /usr/bin/ruby by default.
- Edit cvsspam.rb, line 850, to be an absolute path to your CVS repository. It's currently getting "CVSROOT" as an environment variable, and I have my $CVSROOT set to my default CVS server (so I can type cvs co project, etc.).
Now the question is, does SourceForge have ruby installed on their servers? Or maybe I should just install it in my home directory and configure some projects (i.e. Roller) to use CVS Spam.
Update: I discovered that with new versions of Ruby, you need to apply a patch to CVS Spam (v0.2.7):
Index: cvsspam.rb =================================================================== RCS file: /var/lib/cvs/cvsspam/cvsspam.rb,v retrieving revision 1.37 diff -u -r1.37 cvsspam.rb --- cvsspam.rb 7 Sep 2003 18:10:50 -0000 1.37 +++ cvsspam.rb 11 Sep 2003 20:41:50 -0000 @@ -878,6 +878,9 @@ $bugzillaURL = nil $jiraURL = nil $ticketURL = nil +$viewcvsURL = nil +$choraURL = nil +$cvswebURL = nil $from_address = nil $subjectPrefix = nil $files_in_subject = false;
Posted by Laurent Etiemble on September 10, 2003 at 11:52 PM MDT #
Posted by Unknown on September 11, 2003 at 02:48 PM MDT #