| 24 |  | $heading = "Today's i-scream CVS commits"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 25 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 26 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 27 | < | print "Content-type: text/html\n\n"; | 
 
 
 
 
 
 
 
 
 | 27 | > | my($cvsroot) = "/cvs/i-scream"; | 
 
 
 
 
 
 
 
 
 
 
 | 28 |  |  | 
 
 
 
 
 
 
 
 | 29 | + | my($modulelist)=$query->param('module'); | 
 
 
 
 
 
 
 
 | 30 | + | $modulelist = `ls $cvsroot` unless defined $modulelist; | 
 
 
 
 
 
 
 
 | 31 | + |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 32 |  | my($cvs2clpath) = "/home/sites/www.i-scream.org.uk/bin/cvs2cl.pl"; | 
 
 
 
 
 
 
 
 
 | 30 | – | my($cvsroot) = "/cvs/i-scream"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 33 |  | my($cvs2clargs) = "--stdout -r -b -t -w -U $cvsroot/CVSROOT/users -l \"-d'\>$firstdate'\" -g \"-d$cvsroot\" -g \"-Q\""; | 
 
 
 
 
 
 
 
 
 
 
 | 34 | < | my($updatecmd) = "/home/sites/www.i-scream.org.uk/bin/fullcvsupdate.sh"; | 
 
 
 
 
 
 
 
 
 | 34 | > | my($updatecmd) = "/home/sites/www.i-scream.org.uk/bin/fullcvsupdate.sh $modulelist"; | 
 
 
 
 
 
 
 
 
 
 
 | 35 |  | my($logcmd) = "cd /home/sites/www.i-scream.org.uk/cvsscripttemp && $cvs2clpath $cvs2clargs"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 36 |  |  | 
 
 
 
 
 
 
 
 | 37 | + | print "Content-type: text/html\n\n"; | 
 
 
 
 
 
 
 
 | 38 | + |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 39 |  | print <<"END"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 40 |  | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 41 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 49 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 50 |  | <a href="http://www.i-scream.org.uk"><img border="0" src="../i-scream.gif"></a> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 51 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 52 | < | <center><table border="0" cellpadding="4" cellspacing="1" bgcolor="#000066" align="center"><tr><td bgcolor="#ffffcc"><font color="#000066" face="arial,sans-serif" size="5"><b><center>$heading</center></b></font></td></tr></table></center> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 49 | < | <p> </p> | 
 
 
 
 
 
 
 
 
 | 52 | > | <h2>$heading</h2> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 53 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 54 |  | END | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 55 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 56 |  | print `$updatecmd`; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 57 |  |  | 
 
 
 
 
 
 
 
 
 | 55 | – | my $modulelist = `ls $cvsroot`; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 58 |  | my(@modules) = split (/\s+/, $modulelist); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 59 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 60 |  | foreach my $module (@modules) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 61 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 62 |  | print "<table border=\"0\" bgcolor=\"#000066\" cellpadding=\"5\" width=\"100%\">"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 63 |  | print "<tr><td><font size=\"4\"><b><a href=\"/cgi-bin/cvs/viewcvs.cgi/$module\">$module module</a></b></font></td></tr>"; | 
 
 
 
 
 
 
 
 
 
 
 | 64 | < | print "<tr><td bgcolor=\"white\">"; | 
 
 
 
 
 
 
 
 
 | 64 | > | print "<tr><td bgcolor=\"white\">\n"; | 
 
 
 
 
 
 
 
 
 
 
 | 65 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 66 |  | my(@lines) = `$logcmd $module 2>&1`; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 67 |  | if(@lines == 0) { | 
 
 
 
 
 
 
 
 
 
 
 | 68 | < | print "There have been no commits in this module during this period."; | 
 
 
 
 
 
 
 
 
 | 68 | > | print "There have been no commits in this module during this period.\n"; | 
 
 
 
 
 
 
 
 
 
 
 | 69 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 70 |  | else { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 71 |  | foreach my $line (@lines) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 85 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 86 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 87 |  | } | 
 
 
 
 
 
 
 
 
 
 
 | 88 | < | print "</td></tr>"; | 
 
 
 
 
 
 
 
 
 | 88 | > | print "</td></tr>\n"; | 
 
 
 
 
 
 
 
 
 
 
 | 89 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 90 |  | print "</table><p>\n\n"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 91 |  | } |