20030910 Wednesday September 10, 2003

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 in Java at Sep 10 2003, 05:04:25 PM MDT 2 Comments

Comments:

If you log on the SourceForge shell server, a "which ruby" will give you a positive answer. As you can't log on the SourceForge CVS server, you can't test if ruby is available. So I tried : I put a loginfo script that does a "which ruby" command and it failed. There is no ruby on the Sourceforge CVS server the last time I tried. Laurent.

Posted by Laurent Etiemble on September 10, 2003 at 05:52 PM MDT #

See SourceForge feature request 740804. Maybe start a petition, or something ;)

Posted by Unknown on September 11, 2003 at 08:48 AM MDT #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« January 2009
SunMonTueWedThuFriSat
    
1
2
3
5
6
7
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today

Recent Entries

Tag Cloud