]> i-scream Git - www.i-scream.org.git/commitdiff
Slight alteration to ensure that it only one module is checked by fullcvsupdate.sh
authorTim Bishop <tim@bishnet.net>
Wed, 13 Jun 2001 15:53:51 +0000 (15:53 +0000)
committerTim Bishop <tim@bishnet.net>
Wed, 13 Jun 2001 15:53:51 +0000 (15:53 +0000)
if it is specified in the query string.

cgi-bin/cvslog.cgi

index 4538f6cc192f5ac69baefc5c61ea51bf9fb03804..5374744168952c18cc7cfc35f55a8f7348b4fee0 100755 (executable)
@@ -24,14 +24,18 @@ else {
    $heading = "Today's i-scream CVS commits";
 }
 
-print "Content-type: text/html\n\n";
+my($cvsroot) = "/cvs/i-scream";
+
+my($modulelist)=$query->param('module');
+$modulelist = `ls $cvsroot` unless defined $modulelist;
 
 my($cvs2clpath) = "/home/sites/www.i-scream.org.uk/bin/cvs2cl.pl";
-my($cvsroot) = "/cvs/i-scream";
 my($cvs2clargs) = "--stdout -r -b -t -w -U $cvsroot/CVSROOT/users -l \"-d'\>$firstdate'\" -g \"-d$cvsroot\" -g \"-Q\"";
-my($updatecmd) = "/home/sites/www.i-scream.org.uk/bin/fullcvsupdate.sh";
+my($updatecmd) = "/home/sites/www.i-scream.org.uk/bin/fullcvsupdate.sh $modulelist";
 my($logcmd) = "cd /home/sites/www.i-scream.org.uk/cvsscripttemp && $cvs2clpath $cvs2clargs";
 
+print "Content-type: text/html\n\n";
+
 print <<"END";
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
@@ -51,9 +55,6 @@ END
 
 print `$updatecmd`;
 
-my($modulelist)=$query->param('module');
-$modulelist = `ls $cvsroot` unless defined $modulelist;
-
 my(@modules) = split (/\s+/, $modulelist);
 
 foreach my $module (@modules) {