Diff for /loncom/build/system_dependencies/perltest.pl between versions 1.7 and 1.9

version 1.7, 2002/08/14 16:54:35 version 1.9, 2002/11/04 01:57:53
Line 187  if ($mode eq "html") { Line 187  if ($mode eq "html") {
     print(<<END);      print(<<END);
 Content-type: text/html  Content-type: text/html
   
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html>  <html>
 <head>  <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
 <title>CPAN perl status report; $hostname; $date</title>  <title>CPAN perl status report; $hostname; $date</title>
 </head>  </head>
 <body bgcolor="#ffffff">  <body bgcolor="white">
 <h1>CPAN perl status report</h1>  <h1>CPAN perl status report</h1>
 <pre>  <pre>
 END  END
Line 431  print("\n".'SYNOPSIS'."\n"); Line 434  print("\n".'SYNOPSIS'."\n");
   
 # ========================================================== The stable report.  # ========================================================== The stable report.
 print('**** STABLE REPORT (what a production server should worry about)'."\n");  print('**** STABLE REPORT (what a production server should worry about)'."\n");
 if (@stable_missing) {  if (@stable_missing)
     {
     print('There are '.scalar(@stable_missing).' CPAN distributions missing '.      print('There are '.scalar(@stable_missing).' CPAN distributions missing '.
   'from this LON-CAPA system.'."\n");    'from this LON-CAPA system.'."\n");
 }    }
 else {  else
     {
     print('All perl modules needed by LON-CAPA appear to be present.'."\n");      print('All perl modules needed by LON-CAPA appear to be present.'."\n");
 }    }
 if (@stable_outdated) {  if (@stable_outdated)
     {
     print(scalar(@stable_outdated).' CPAN distributions are out-dated '.      print(scalar(@stable_outdated).' CPAN distributions are out-dated '.
   'on this LON-CAPA system.'."\n");    'on this LON-CAPA system.'."\n");
 }    }
 if (@stable_veryokay) {  if (@stable_veryokay)
     {
     print(scalar(@stable_veryokay).' CPAN distributions are an exact match '.      print(scalar(@stable_veryokay).' CPAN distributions are an exact match '.
   '(based on version number).'."\n");    '(based on version number).'."\n");
 #    print @stable_veryokay;  #    print @stable_veryokay;
 }    }
 if (@stable_okay) {  if (@stable_okay)
     {
     print(scalar(@stable_okay).' CPAN dists have a version number '.      print(scalar(@stable_okay).' CPAN dists have a version number '.
   'higher than expected'.    'higher than expected'.
   ' (probably okay).'. "\n");    ' (probably okay).'. "\n");
 }    }
 print("\n");  print("\n");
   
 # ===================================================== The development report.  # ===================================================== The development report.
 print('**** DEVELOPMENT REPORT (do not worry about this unless you are a'.  print('**** DEVELOPMENT REPORT (do not worry about this unless you are a'.
       ' coder)'."\n");        ' coder)'."\n");
 if (@dev_missing) {  if (@dev_missing)
     {
     print('There are '.scalar(@dev_missing).' CPAN distributions missing '.      print('There are '.scalar(@dev_missing).' CPAN distributions missing '.
   'from this LON-CAPA system.'."\n");    'from this LON-CAPA system.'."\n");
 }    }
 else {  else
     {
     print('All perl modules needed by LON-CAPA appear to be present.'."\n");      print('All perl modules needed by LON-CAPA appear to be present.'."\n");
 }    }
 if (@dev_outdated) {  if (@dev_outdated)
     {
     print(scalar(@dev_outdated).' CPAN distributions are out-dated '.      print(scalar(@dev_outdated).' CPAN distributions are out-dated '.
   'on this LON-CAPA system.'."\n");    'on this LON-CAPA system.'."\n");
 }    }
 if (@dev_veryokay) {  if (@dev_veryokay)
     {
     print(scalar(@dev_veryokay).' CPAN distributions are an exact match '.      print(scalar(@dev_veryokay).' CPAN distributions are an exact match '.
   '(based on version number).'."\n");    '(based on version number).'."\n");
 #    print @dev_veryokay;  #    print @dev_veryokay;
 }    }
 if (@dev_okay) {  if (@dev_okay)
     {
     print(scalar(@stable_okay).' CPAN dists have a version number '.      print(scalar(@stable_okay).' CPAN dists have a version number '.
   'higher than expected'.    'higher than expected'.
   ' (probably okay).'. "\n");    ' (probably okay).'. "\n");
 }    }
   
 if ($mode eq 'synopsis') {  my $detailstream;
   if ($mode eq 'synopsis')
     {
     print("\n".'**** NOTE ****'."\n".      print("\n".'**** NOTE ****'."\n".
   'After everything completes, please view the CPAN_STATUS_REPORT'.    'After everything completes, please view the CPAN_STATUS_REPORT'.
   ' file for more '."\n".'information on resolving your perl modules.'.    ' file for more '."\n".'information on resolving your perl modules.'.
Line 487  if ($mode eq 'synopsis') { Line 502  if ($mode eq 'synopsis') {
   
     print('* HIT RETURN WHEN READY TO CONTINUE *'."\n");      print('* HIT RETURN WHEN READY TO CONTINUE *'."\n");
     my $returnkey=<>;      my $returnkey=<>;
 }      open(OUT,'>CPAN_STATUS_REPORT');
 else {      $detailstream=\*OUT;
     print("\n".'DETAILED STATUS REPORT'."\n"); # Header of status report.    }
   else
     # Print advisory notices.    {
     print("\n".'(Consult loncapa/doc/otherfiles/perl_modules.txt for '.      $detailstream=\*STDOUT;
   'information on'."\n".    }
   ' manual build instructions.)'."\n");  print($detailstream 
     print("\n".'(**** IMPORTANT NOTICE **** HTML-Parser needs to be patched '.        "\n".'DETAILED STATUS REPORT'."\n"); # Header of status report.
   "\n".' as described in loncapa/doc/otherfiles/perl_modules.txt)'.  
   "\n");  
   
     print("\n".'For manual installation of CPAN distributions, visit'."\n".  
   'http://search.cpan.org/dist/DistName'."\n".  
   'where DistName is something like "HTML-Parser" or "libwww-perl".'.  
   "\n");  
   
     print("\n".'For automatic installation of CPAN distributions, visit'."\n".  # Print advisory notices.
   'http://install.lon-capa.org/resources/cpanauto/DistName.bin'."\n".  print($detailstream
   'where DistName.bin is something like "HTML-Parser.bin" or '.        "\n".'(Consult loncapa/doc/otherfiles/perl_modules.txt for '.
   '"libwww-perl.bin".'."\n");        'information on'."\n".
         ' manual build instructions.)'."\n");
     # Print detailed report of stable.  print($detailstream
     print("\n".'STABLE (DETAILED REPORT)'."\n");        "\n".'(**** IMPORTANT NOTICE **** HTML-Parser needs to be patched '.
     print @stable_missing;        "\n".' as described in loncapa/doc/otherfiles/perl_modules.txt)'.
     print @stable_outdated;        "\n");
     print @stable_veryokay;  
     print @stable_okay;  print($detailstream
     print("\n".'DEVELOPMENT (DETAILED REPORT)'."\n");        "\n".'For manual installation of CPAN distributions, visit'."\n".
     print @dev_missing;        'http://search.cpan.org/dist/DistName'."\n".
     print @dev_outdated;        'where DistName is something like "HTML-Parser" or "libwww-perl".'.
     print @dev_veryokay;        "\n");
     print @dev_okay;  
 }  print($detailstream
         "\n".'For automatic installation of CPAN distributions, visit'."\n".
         'http://install.lon-capa.org/resources/cpanauto/DistName.bin'."\n".
         'where DistName.bin is something like "HTML-Parser.bin" or '.
         '"libwww-perl.bin".'."\n");
   
   # Print detailed report of stable.
   print($detailstream
         "\n".'STABLE (DETAILED REPORT)'."\n");
   print $detailstream @stable_missing;
   print $detailstream @stable_outdated;
   print $detailstream @stable_veryokay;
   print $detailstream @stable_okay;
   print($detailstream "\n".'DEVELOPMENT (DETAILED REPORT)'."\n");
   print $detailstream @dev_missing;
   print $detailstream @dev_outdated;
   print $detailstream @dev_veryokay;
   print $detailstream @dev_okay;
   
 if ($mode eq "html") {  if ($mode eq "html")
     {
     print(<<END);      print(<<END);
 </pre>  </pre>
 </body>  </body>
 </html>  </html>
 END  END
 }    }
   
 # ================================================================ Subroutines.  # ================================================================ Subroutines.
 # Note that "vers_cmp" and "have_vers" are adapted from a bugzilla version 2.16  # Note that "vers_cmp" and "have_vers" are adapted from a bugzilla version 2.16

Removed from v.1.7  
changed lines
  Added in v.1.9


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>