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

version 1.5, 2003/11/24 16:56:47 version 1.6, 2004/10/26 19:45:57
Line 56  if (-e '/etc/redhat-release') { Line 56  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\.]+) /) {
           $dist='sles'.$1;
       } elsif ($versionstring =~ /^SuSE Linux ([\d\.]+) /) {
           $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.6


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