From 4d29fcb19935696adb1cb060bbc8e54ed4117b5c Mon Sep 17 00:00:00 2001 From: Tim Bishop Date: Wed, 13 Jun 2001 15:53:51 +0000 Subject: [PATCH] Slight alteration to ensure that it only one module is checked by fullcvsupdate.sh if it is specified in the query string. --- cgi-bin/cvslog.cgi | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cgi-bin/cvslog.cgi b/cgi-bin/cvslog.cgi index 4538f6c..5374744 100755 --- a/cgi-bin/cvslog.cgi +++ b/cgi-bin/cvslog.cgi @@ -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"; @@ -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) { -- 2.44.0