[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
running apache scripts linked with loginfo / commitinfo
From: |
Arcin Bozkurt |
Subject: |
running apache scripts linked with loginfo / commitinfo |
Date: |
02 May 2002 11:06:06 -0400 |
Hi everyone,
I am trying to run the apache scripts available at:
http://cvs.apache.org/viewcvs.cgi/CVSROOT/
as you may guess/know, these scripts are linked with commitinfo,
loginfo, etc.
--
I tried to run this these on our system. The server is a Sun Solaris
running cvs 1.11.1p1. The server runs perl, version 5.005_03 built for
sun4-solaris.
The client is a Linux Redhat 7.2 running cvs 1.11.1p1.
Unfortunately scripts don't work properly.
The scripts are running fine, but i believe one of the function does not
do what it is intended to do. Here is a snippet from that function
sub change_summary {
local($out, @filenames) = @_;
local(@revline);
local($file, $rev, $rcsfile, $line);
while (@filenames) {
[...]
>>
open(RCS, "-|") || exec 'cvs', '-Qn', 'status', $file;
<<
while (<RCS>) {
if (/^[ \t]*Repository revision/) {
chomp;
@revline = split(' ', $_);
$rev = $revline[2];
$rcsfile = $revline[3];
$rcsfile =~ s,^$CVSROOT/,,;
$rcsfile =~ s/,v$//;
}
}
close(RCS);
[...]
}
The line marked (open(RCS, ......)) executes cvs -Qn status $file on the
server. But CVS does not return any information when you try to execute
this because it complains that it doesn't know about any CVS/Entries
file. Because cvs status works only on a checked out copy. Since there
is no such thing on the server, how can we expect this to work??
I believe there are some other problem associated with this scripts. It
sends 2 files as an email. One has just the time/dat info, the other has
a listing of the changed/renamed/added etc file with no summary info (no
summary info because CVS status call does not work)
--
What I have written above is my understanding of what is going on. If
you have worked with these apache scripts, can you help me to make them
work ?
Any help is greatly appreciated.
-arcin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- running apache scripts linked with loginfo / commitinfo,
Arcin Bozkurt <=