Diff for /loncom/build/distprobe between versions 1.6 and 1.14

version 1.6, 2004/10/26 19:45:57 version 1.14, 2007/06/28 13:30:06
Line 42  if (-e '/etc/redhat-release') { Line 42  if (-e '/etc/redhat-release') {
         } elsif ($version=~/^9/) {          } elsif ($version=~/^9/) {
             $dist='redhat9';              $dist='redhat9';
         }          }
     } elsif ($versionstring =~ /Fedora Core release ([\d\.]+) /) {      } elsif ($versionstring =~ /Fedora( Core)? release ([\d\.]+) /) {
         $dist = 'fedora'.$1;   my $version=$2;
    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;
       } elsif ($versionstring =~ /Red Hat Enterprise Linux Server release (\d+)/) {
           $dist = 'rhes'.$1;
       } elsif ($versionstring =~ /CentOS release (\d+)/) {
           $dist = 'centos'.$1;
       } elsif ($versionstring =~ /Scientific Linux SL release ([\d\.]+) /) {
           $dist = 'scientific'.$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 61  if (-e '/etc/redhat-release') { Line 74  if (-e '/etc/redhat-release') {
     my $versionstring=<IN>;      my $versionstring=<IN>;
     chomp($versionstring);      chomp($versionstring);
     close(IN);      close(IN);
     if ($versionstring =~ /^SUSE LINUX Enterprise Server ([\d\.]+) /) {      if ($versionstring =~ /^SUSE LINUX Enterprise Server ([\d\.]+) /i) {
         $dist='sles'.$1;          $dist='sles'.$1;
     } elsif ($versionstring =~ /^SuSE Linux ([\d\.]+) /) {      } elsif ($versionstring =~ /^SuSE Linux ([\d\.]+) /i) {
           $dist = 'suse'.$1;
       } elsif ($versionstring =~ /^openSUSE ([\d\.]+) /i) {
         $dist = 'suse'.$1;          $dist = 'suse'.$1;
     } else {      } else {
         warn('Unable to interpret /etc/SuSE-release '.          warn('Unable to interpret /etc/SuSE-release '.

Removed from v.1.6  
changed lines
  Added in v.1.14


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