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"; |
31 |
|
my($cvs2clargs) = "--stdout -r -b -t -w -U $cvsroot/CVSROOT/users -l \"-d'\>$firstdate'\" -g \"-d$cvsroot\" -g \"-Q\""; |
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> </p> |
50 |
|
|
51 |
|
END |
52 |
|
|
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 "$module" cvs module</a>\n"; |
63 |
< |
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> |