version 1.24, 1998/08/16 13:45:12 |
version 1.34, 1999/09/08 13:04:09 |
|
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
# SUCH DAMAGE. |
# SUCH DAMAGE. |
# |
# |
# $fId: cvsweb.cgi,v 1.23 1998/08/15 09:59:11 wosch Exp $ |
# $FreeBSD: www/en/cgi/cvsweb.cgi,v 1.33 1999/09/06 07:02:40 peter Exp $ |
# |
# |
|
|
|
|
Line 62 require 'cgi-style.pl'; |
|
Line 62 require 'cgi-style.pl'; |
|
%CVSROOT = ( |
%CVSROOT = ( |
'freebsd', '/home/ncvs', |
'freebsd', '/home/ncvs', |
'learn', '/c/learncvs', |
'learn', '/c/learncvs', |
'mozilla', '/a/mozilla-cvs', |
|
); |
); |
|
|
%CVSROOTdescr = ( |
%CVSROOTdescr = ( |
'freebsd', 'FreeBSD', |
'freebsd', 'FreeBSD', |
'learn', 'Learn', |
'learn', 'Learn', |
'mozilla', 'Mozilla FreeBSD', |
|
); |
); |
|
|
%mirrors = ( |
%mirrors = ( |
'Germany', 'http://www.de.freebsd.org/cgi/cvsweb.cgi', |
'Germany', 'http://www.de.freebsd.org/cgi/cvsweb.cgi', |
'Japan', 'http://www.jp.freebsd.org/www.freebsd.org/cgi/cvsweb.cgi', |
'Spain', 'http://www.es.freebsd.org/cgi/cvsweb.cgi', |
|
'California', 'http://www.freebsd.org/cgi/cvsweb.cgi', |
|
'Japan', 'http://www.jp.freebsd.org/cgi/cvsweb.cgi', |
); |
); |
|
|
$cvstreedefault = 'freebsd'; |
$cvstreedefault = 'freebsd'; |
Line 145 if (!-d $cvsroot) { |
|
Line 145 if (!-d $cvsroot) { |
|
&fatal("500 Internal Error",'$CVSROOT not found!<P>The server on which the CVS tree lives is probably down. Please try again in a few minutes.'); |
&fatal("500 Internal Error",'$CVSROOT not found!<P>The server on which the CVS tree lives is probably down. Please try again in a few minutes.'); |
} |
} |
|
|
|
# Set up for FreeBSD repo options. |
|
$ENV{'RCSLOCALID'} = 'FreeBSD=CVSHeader'; |
|
$ENV{'RCSINCEXC'} = 'iFreeBSD'; |
|
$ENV{'CVSROOT'} = $cvsroot; |
|
|
{ |
{ |
local(@foo, $i); |
local(@foo, $i); |
Line 155 if (!-d $cvsroot) { |
|
Line 159 if (!-d $cvsroot) { |
|
} |
} |
} |
} |
if ($#foo > 1) { |
if ($#foo > 1) { |
$intro .= "<p>\nThis script support the following CVS trees:\n"; |
$intro .= "<p>\nThis script supports the following CVS trees:\n"; |
for($i = 0; $i <= $#foo; $i++) { |
for($i = 0; $i <= $#foo; $i++) { |
$intro .= qq{<a href="$scriptname?cvsroot=$foo[$i]">} . |
$intro .= qq{<a href="$scriptname?cvsroot=$foo[$i]">} . |
($CVSROOTdescr{$foo[$i]} ? |
($CVSROOTdescr{$foo[$i]} ? |
|
|
$string =~ s/>/>/g; |
$string =~ s/>/>/g; |
|
|
if ($pr) { |
if ($pr) { |
$string =~ s|\bpr(\W+[a-z]+/\W*)(\d+)|<A HREF=/cgi/query-pr.cgi?pr=$2>$&</A>|ig; |
$string =~ s!\b((pr[:#]?\s*#?)|((bin|conf|docs|gnu|i386|kern|misc|ports)\/))(\d+)\b!<A HREF=http://www.freebsd.org/cgi/query-pr.cgi?pr=\5>$&</A>!ig; |
} |
} |
|
|
$string; |
$string; |
|
|
"Unexpected output from co: $_"); |
"Unexpected output from co: $_"); |
} |
} |
$_ = <RCS>; |
$_ = <RCS>; |
if (/^revision\s+$rev\s*$/) { |
if ($rev eq ".") { |
|
# latest rev requested, don't check |
|
} elsif (/^revision\s+$rev\s*$/) { |
# As expected |
# As expected |
} else { |
} else { |
&fatal("500 Internal Error", |
&fatal("500 Internal Error", |
|
|
print " <i>(vendor branch)</i>"; |
print " <i>(vendor branch)</i>"; |
} |
} |
print " <i>" . &ctime($date{$_}) . " UTC</i> by "; |
print " <i>" . &ctime($date{$_}) . " UTC</i> by "; |
print "<i>" . $author{$_} . "</i>\n"; |
print "<i><a href=\"mailto:" . $author{$_} . "\@FreeBSD.org\">" . $author{$_} . "</a></i>\n"; |
if ($revsym{$_}) { |
if ($revsym{$_}) { |
print "<BR>CVS Tags: <b>$revsym{$_}</b>"; |
print "<BR>CVS Tags: <b>$revsym{$_}</b>"; |
} |
} |