[BACK]Return to cvsweb.cgi CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / cvsweb

Diff for /cvsweb/cvsweb.cgi between version 1.12 and 1.16

version 1.12, 1997/11/19 19:07:18 version 1.16, 1998/04/06 15:50:27
Line 36  require 'cgi-style.pl';
Line 36  require 'cgi-style.pl';
             'freebsd', '/home/ncvs',              'freebsd', '/home/ncvs',
             'openbsd', '/home/OpenBSD/cvs',              'openbsd', '/home/OpenBSD/cvs',
             'learn', '/c/learncvs',              'learn', '/c/learncvs',
               'mozilla', '/a/mozilla-cvs',
             );              );
   
   %CVSROOTdescr = (
               'freebsd', 'FreeBSD',
               'openbsd', 'OpenBSD',
               'learn', 'Learn',
               'mozilla', 'Mozilla FreeBSD',
               );
   
 $cvstreedefault = 'freebsd';  $cvstreedefault = 'freebsd';
 $cvstree = $cvstreedefault;  $cvstree = $cvstreedefault;
 $cvsroot = $CVSROOT{"$cvstree"} || "/home/ncvs";  $cvsroot = $CVSROOT{"$cvstree"} || "/home/ncvs";
Line 107  if (!-d $cvsroot) {
Line 115  if (!-d $cvsroot) {
 }  }
   
   
   {
       local(@foo, $i);
       local($scriptname) = $ENV{'SCRIPT_NAME'};
       foreach (keys %CVSROOT) {
           if (-d $CVSROOT{$_}) {
               push(@foo, $_);
           }
       }
       if ($#foo > 1) {
           $intro .= "<p>\nThis script support the following CVS trees:\n";
           for($i = 0; $i <= $#foo; $i++) {
               $intro .= qq{<a href="$scriptname?cvsroot=$foo[$i]">} .
                   ($CVSROOTdescr{$foo[$i]} ?
                    $CVSROOTdescr{$foo[$i]} : $foo[$i]) . qq{</a>} .
                        ($i == $#foo  ? ".\n" : ",\n");
           }
       }
   }
   
   
 if (-d $fullname) {  if (-d $fullname) {
         opendir(DIR, $fullname) || &fatal("404 Not Found","$where: $!");          opendir(DIR, $fullname) || &fatal("404 Not Found","$where: $!");
         @dir = readdir(DIR);          @dir = readdir(DIR);
Line 118  if (-d $fullname) {
Line 146  if (-d $fullname) {
             print &html_header("/$where");              print &html_header("/$where");
             print $shortinstr;              print $shortinstr;
         }          }
         print "<p>Current directory: <b>/$where</b>\n";          print "<p>";
           print "Current CVS tree: <b>$cvstree</b><br>\n"
               if $cvstree ne $cvstreedefault;
           print "Current directory: <b>/$where</b>\n";
         print "<P><HR NOSHADE>\n";          print "<P><HR NOSHADE>\n";
         # Using <MENU> in this manner violates the HTML2.0 spec but          # Using <MENU> in this manner violates the HTML2.0 spec but
         # provides the results that I want in most browsers.  Another          # provides the results that I want in most browsers.  Another
Line 228  print("going to dolog($fullname)\n") if ($verbose);
Line 259  print("going to dolog($fullname)\n") if ($verbose);
         # Display a form offering diffs between said tags          # Display a form offering diffs between said tags
 } else {  } else {
         # Assume it's a module name with a potential path following it.          # Assume it's a module name with a potential path following it.
         ($module = $where) =~ s|/.*||;          $xtra = $& if (($module = $where) =~ s|/.*||);
         $xtra = $&;  
         # Is there an indexed version of modules?          # Is there an indexed version of modules?
         if (open(MODULES, "$cvsroot/CVSROOT/modules")) {          if (open(MODULES, "$cvsroot/CVSROOT/modules")) {
                 while (<MODULES>) {                  while (<MODULES>) {
Line 643  sub dolog {
Line 673  sub dolog {
             if (/^1\.1\.1\.\d+$/) {              if (/^1\.1\.1\.\d+$/) {
                 print " <i>(vendor branch)</i>";                  print " <i>(vendor branch)</i>";
             }              }
             print " <i>" . &ctime($date{$_}) . "</i> by ";              print " <i>" . &ctime($date{$_}) . " UTC</i> by ";
             print "<i>" . $author{$_} . "</i>\n";              print "<i>" . $author{$_} . "</i>\n";
             if ($revsym{$_}) {              if ($revsym{$_}) {
                 print "<BR>CVS Tags: <b>$revsym{$_}</b>";                  print "<BR>CVS Tags: <b>$revsym{$_}</b>";

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.16

CVSweb