Diff for /loncom/build/distprobe between versions 1.5 and 1.11

version 1.5, 2003/11/24 16:56:47 version 1.11, 2007/04/22 16:33:22
Line 43  if (-e '/etc/redhat-release') { Line 43  if (-e '/etc/redhat-release') {
             $dist='redhat9';              $dist='redhat9';
         }          }
     } elsif ($versionstring =~ /Fedora Core release ([\d\.]+) /) {      } elsif ($versionstring =~ /Fedora Core release ([\d\.]+) /) {
         $dist = 'fedora'.$1;   my $version=$1;
    if ($version - int($version) > .9) {
       $dist = 'fedora'.(int($version)+1);
    } else {
       $dist = 'fedora'.int($version);
    }
       } elsif ($versionstring =~ /Red Hat Enterprise Linux [AE]S release ([\d\.]+) /) {
           $dist = 'rhes'.$1;
     } else {      } else {
         warn('Unable to interpret /etc/redhat-release '.          warn('Unable to interpret /etc/redhat-release '.
              'to determine system type');               'to determine system type');
Line 56  if (-e '/etc/redhat-release') { Line 63  if (-e '/etc/redhat-release') {
     if ($version eq '2.2') {      if ($version eq '2.2') {
  $dist='debian2.2';   $dist='debian2.2';
     }      }
   } elsif (-e '/etc/SuSE-release') {
       open(IN,'</etc/SuSE-release');
       my $versionstring=<IN>;
       chomp($versionstring);
       close(IN);
       if ($versionstring =~ /^SUSE LINUX Enterprise Server ([\d\.]+) /i) {
           $dist='sles'.$1;
       } elsif ($versionstring =~ /^SuSE Linux ([\d\.]+) /i) {
           $dist = 'suse'.$1;
       } elsif ($versionstring =~ /^openSUSE ([\d\.]+) /i) {
           $dist = 'suse'.$1;
       } else {
           warn('Unable to interpret /etc/SuSE-release '.
                'to determine system type');
       }
 } else {  } else {
     warn('Unknown installation: expecting a debian or redhat system');      warn('Unknown installation: expecting a debian, suse, or redhat system');
 }  }
 print $dist;  print $dist;

Removed from v.1.5  
changed lines
  Added in v.1.11


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