ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/web/cgi-bin/cvslog.cgi
(Generate patch)

Comparing web/cgi-bin/cvslog.cgi (file contents):
Revision 1.5 by tdb, Tue Jun 5 16:19:00 2001 UTC vs.
Revision 1.8 by tdb, Wed Jun 13 15:24:40 2001 UTC

# Line 26 | Line 26 | else {
26  
27   print "Content-type: text/html\n\n";
28  
29 my($cvs) = "/usr/bin/cvs";
29   my($cvs2clpath) = "/home/sites/www.i-scream.org.uk/bin/cvs2cl.pl";
30   my($cvsroot) = "/cvs/i-scream";
32 #my($cvs2clargs) = "--stdout -r -b -t -w -U $cvsroot/CVSROOT/users -l \"-d'\>$today'\" -g \"-d$cvsroot\" -g \"-Q\"";
31   my($cvs2clargs) = "--stdout -r -b -t -w -U $cvsroot/CVSROOT/users -l \"-d'\>$firstdate'\" -g \"-d$cvsroot\" -g \"-Q\"";
32 < my($updatecmd) = "cd /home/sites/www.i-scream.org.uk/cvsscripttemp && $cvs -d $cvsroot -Q update -d";
32 > my($updatecmd) = "/home/sites/www.i-scream.org.uk/bin/fullcvsupdate.sh";
33   my($logcmd) = "cd /home/sites/www.i-scream.org.uk/cvsscripttemp && $cvs2clpath $cvs2clargs";
34  
35   print <<"END";
# Line 40 | Line 38 | print <<"END";
38   <html>
39  
40   <head>
41 < <title>The i-scream Project Daily Commit Log</title>
41 > <title>The i-scream Project Commit Log</title>
42   </head>
43  
44 < <body bgcolor="#ffffff" link="#0000ff" alink="#3333cc" vlink="#3333cc" text="#000066">
44 > <body bgcolor="#ffffff" link="#ffffff" alink="#ffffff" vlink="#ffffff" text="#000066">
45  
46   <a href="http://www.i-scream.org.uk"><img border="0" src="../i-scream.gif"></a>
47  
48   <h2>$heading</h2>
49 + <p>&nbsp;</p>
50  
51   END
52  
# Line 58 | Line 57 | my(@modules) = split (/\s+/, $modulelist);
57  
58   foreach my $module (@modules) {
59  
60 <    print "<p><h3>$module module</h3>\n";
61 <    print "<a href=\"/cgi-bin/cvs/viewcvs.cgi/$module\">";
62 <    print "Browse i-scream &quot;$module&quot; cvs module</a>\n";
64 <    print "<pre>\n";
60 >    print "<table border=\"0\" bgcolor=\"#000066\" cellpadding=\"5\" width=\"100%\">";
61 >    print "<tr><td><font size=\"4\"><b><a href=\"/cgi-bin/cvs/viewcvs.cgi/$module\">$module module</a></b></font></td></tr>";
62 >    print "<tr><td bgcolor=\"white\">\n";
63  
64      my(@lines) = `$logcmd $module 2>&1`;
65      if(@lines == 0) {
66 <        print "There have been no commits in this module during this period.";
66 >        print "There have been no commits in this module during this period.\n";
67      }
68      else {
69          foreach my $line (@lines) {
70 <            print HTML_encode($line);
70 >
71 >            if ($line =~ /^([0-9]{4}-[0-9]{2}-[0-9]{2}.*?)([^\s]+)$/) {
72 >                print "<font color=\"blue\"><b>";
73 >                print HTML_encode($1);
74 >                print "</b><i>";
75 >                print HTML_encode("by $2");
76 >                print "</i></font>"
77 >            }
78 >            else {
79 >                chop $line;
80 >                print "<code>";
81 >                print HTML_encode($line);
82 >                print "</code><br>"
83 >            }
84          }
85      }
86 +    print "</td></tr>\n";
87  
88 <    print "</pre></p>\n\n";
88 >    print "</table><p>\n\n";
89   }
90  
91   print <<"END";
92 +
93   </body>
94  
95   </html>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines