| 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($cvs) = "/usr/bin/cvs"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 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"; | 
 
 
 
 
 
 
 
 
 
 | 31 | 
 – | 
 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 | 
 + | 
 my($leftinc) = "/home/sites/www.i-scream.org.uk/web/left.inc"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 37 | 
   | 
  | 
 
 
 
 
 
 
 
 
 | 38 | 
 + | 
 print "Content-type: text/html\n\n"; | 
 
 
 
 
 
 
 
 
 | 39 | 
 + | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 40 | 
   | 
 print <<"END"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 41 | 
   | 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 42 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 43 | 
   | 
 <html> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 44 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 45 | 
   | 
 <head> | 
 
 
 
 
 
 
 
 
 
 
 
 | 46 | 
 < | 
  <title>The i-scream Project Daily Commit Log</title> | 
 
 
 
 
 
 
 
 
 
 | 46 | 
 > | 
  <title>The i-scream Project Commit Log</title> | 
 
 
 
 
 
 
 
 
 
 
 
 | 47 | 
   | 
 </head> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 48 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 49 | 
 < | 
 <body bgcolor="#ffffff" link="#0000ff" alink="#3333cc" vlink="#3333cc" text="#000066"> | 
 
 
 
 
 
 
 
 
 
 | 49 | 
 > | 
 <body bgcolor="#ffffff" link="#ffffff" alink="#ffffff" vlink="#ffffff" text="#000066"> | 
 
 
 
 
 
 
 
 
 
 
 
 | 50 | 
   | 
  | 
 
 
 
 
 
 
 
 
 | 51 | 
 + | 
 <table border="0" cellpadding="2" cellspacing="2"> | 
 
 
 
 
 
 
 
 
 | 52 | 
 + | 
  <tr> | 
 
 
 
 
 
 
 
 
 | 53 | 
 + | 
   <td valign="top"> | 
 
 
 
 
 
 
 
 
 | 54 | 
 + | 
  | 
 
 
 
 
 
 
 
 
 | 55 | 
 + | 
 END | 
 
 
 
 
 
 
 
 
 | 56 | 
 + | 
 print `$leftinc`; | 
 
 
 
 
 
 
 
 
 | 57 | 
 + | 
 print <<"END"; | 
 
 
 
 
 
 
 
 
 | 58 | 
 + | 
  | 
 
 
 
 
 
 
 
 
 | 59 | 
 + | 
   </td> | 
 
 
 
 
 
 
 
 
 | 60 | 
 + | 
   <td valign="top"> | 
 
 
 
 
 
 
 
 
 | 61 | 
 + | 
  | 
 
 
 
 
 
 
 
 
 | 62 | 
 + | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 63 | 
   | 
 <a href="http://www.i-scream.org.uk"><img border="0" src="../i-scream.gif"></a> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 64 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 65 | 
   | 
 <h2>$heading</h2> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 68 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 69 | 
   | 
 print `$updatecmd`; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 70 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 | 55 | 
 – | 
 my $modulelist = `ls $cvsroot`; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 71 | 
   | 
 my(@modules) = split (/\s+/, $modulelist); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 72 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 73 | 
   | 
 foreach my $module (@modules) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 74 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 75 | 
 < | 
     print "<p><h3>$module module</h3>\n"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 76 | 
 < | 
     print "<a href=\"/cgi-bin/cvs/viewcvs.cgi/$module\">"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 77 | 
 < | 
     print "Browse i-scream "$module" cvs module</a>\n"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 63 | 
 < | 
     print "<pre>\n"; | 
 
 
 
 
 
 
 
 
 
 | 75 | 
 > | 
     print "<table border=\"0\" bgcolor=\"#000066\" cellpadding=\"5\" width=\"100%\">\n\n"; | 
 
 
 
 
 
 | 76 | 
 > | 
     print "<tr><td>\n<font size=\"4\"><b><a href=\"/cgi-bin/cvs/viewcvs.cgi/$module\">$module module</a></b></font>\n</td></tr>\n\n"; | 
 
 
 
 
 
 | 77 | 
 > | 
     print "<tr><td bgcolor=\"white\">\n"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 78 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 79 | 
   | 
     my(@lines) = `$logcmd $module 2>&1`; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 80 | 
   | 
     if(@lines == 0) { | 
 
 
 
 
 
 
 
 
 
 
 
 | 81 | 
 < | 
         print "There have been no commits in this module during this period."; | 
 
 
 
 
 
 
 
 
 
 | 81 | 
 > | 
         print "There have been no commits in this module during this period.\n"; | 
 
 
 
 
 
 
 
 
 
 
 
 | 82 | 
   | 
     } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 83 | 
   | 
     else { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 84 | 
   | 
         foreach my $line (@lines) { | 
 
 
 
 
 
 
 
 
 
 
 
 | 85 | 
 < | 
             print HTML_encode($line); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 85 | 
 > | 
  | 
 
 
 
 
 
 | 86 | 
 > | 
             if ($line =~ /^([0-9]{4}-[0-9]{2}-[0-9]{2}.*?)([^\s]+)$/) { | 
 
 
 
 
 
 | 87 | 
 > | 
                 print "\n<font color=\"blue\"><b>"; | 
 
 
 
 
 
 | 88 | 
 > | 
                 print HTML_encode($1); | 
 
 
 
 
 
 | 89 | 
 > | 
                 print "</b><i>"; | 
 
 
 
 
 
 | 90 | 
 > | 
                 print HTML_encode("by $2"); | 
 
 
 
 
 
 | 91 | 
 > | 
                 print "</i></font>\n" | 
 
 
 
 
 
 | 92 | 
 > | 
             } | 
 
 
 
 
 
 | 93 | 
 > | 
             else { | 
 
 
 
 
 
 | 94 | 
 > | 
                 chop $line; | 
 
 
 
 
 
 | 95 | 
 > | 
                 print "<code>"; | 
 
 
 
 
 
 | 96 | 
 > | 
                 print HTML_encode($line); | 
 
 
 
 
 
 | 97 | 
 > | 
                 print "</code><br>\n" | 
 
 
 
 
 
 | 98 | 
 > | 
             } | 
 
 
 
 
 
 
 
 
 
 
 
 | 99 | 
   | 
         } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 100 | 
   | 
     } | 
 
 
 
 
 
 
 
 
 | 101 | 
 + | 
     print "</td></tr>\n"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 102 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 103 | 
 < | 
     print "</pre></p>\n\n"; | 
 
 
 
 
 
 
 
 
 
 | 103 | 
 > | 
     print "</table><p>\n\n"; | 
 
 
 
 
 
 
 
 
 
 
 
 | 104 | 
   | 
 } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 105 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 106 | 
   | 
 print <<"END"; | 
 
 
 
 
 
 
 
 
 | 107 | 
 + | 
  | 
 
 
 
 
 
 
 
 
 | 108 | 
 + | 
   </td> | 
 
 
 
 
 
 
 
 
 | 109 | 
 + | 
  </tr> | 
 
 
 
 
 
 
 
 
 | 110 | 
 + | 
 </table> | 
 
 
 
 
 
 
 
 
 | 111 | 
 + | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 112 | 
   | 
 </body> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 113 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 114 | 
   | 
 </html> |