=================================================================== RCS file: /cvs/cvsweb/cvsweb.cgi,v retrieving revision 1.23 retrieving revision 1.24 diff -u -p -r1.23 -r1.24 --- cvsweb/cvsweb.cgi 1998/08/15 09:59:11 1.23 +++ cvsweb/cvsweb.cgi 1998/08/16 13:45:12 1.24 @@ -28,7 +28,7 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $fId: cvsweb.cgi,v 1.22 1998/08/13 10:35:26 wosch Exp $ +# $fId: cvsweb.cgi,v 1.23 1998/08/15 09:59:11 wosch Exp $ # @@ -71,6 +71,11 @@ require 'cgi-style.pl'; 'mozilla', 'Mozilla FreeBSD', ); +%mirrors = ( + 'Germany', 'http://www.de.freebsd.org/cgi/cvsweb.cgi', + 'Japan', 'http://www.jp.freebsd.org/www.freebsd.org/cgi/cvsweb.cgi', + ); + $cvstreedefault = 'freebsd'; $cvstree = $cvstreedefault; $cvsroot = $CVSROOT{"$cvstree"} || "/home/ncvs"; @@ -156,6 +161,20 @@ if (!-d $cvsroot) { ($CVSROOTdescr{$foo[$i]} ? $CVSROOTdescr{$foo[$i]} : $foo[$i]) . qq{} . ($i == $#foo ? ".\n" : ",\n"); + } + } +} + + +{ + local(@mirrors) = sort keys %mirrors;; + if ($#mirrors >= 0) { + $intro .= "

\nThis script is mirrored in:\n"; + local($m); + for($m = 0; $m <= $#mirrors; $m++) { + $intro .= qq($mirrors[$m]); + $intro .= ',' if $m != $#mirrors; + $intro .= "\n"; } } }