Diff for /loncom/build/distprobe between versions 1.21 and 1.23

version 1.21, 2018/10/17 14:33:49 version 1.23, 2019/07/02 19:40:31
Line 29 Line 29
   
 my $dist='default';  my $dist='default';
 my $unknown;  my $unknown;
 if (-e '/etc/redhat-release') {  if (-e '/etc/oracle-release') {
       open(IN,'</etc/oracle-release');
       my $versionstring=<IN>;
       chomp($versionstring);
       close(IN);
       if ($versionstring =~ /^Oracle Linux Server release (\d+)/) {
           $dist = 'oracle'.$1;
       }
   } elsif (-e '/etc/redhat-release') {
     open(IN,'</etc/redhat-release');      open(IN,'</etc/redhat-release');
     my $versionstring=<IN>;      my $versionstring=<IN>;
     chomp($versionstring);      chomp($versionstring);
Line 54  if (-e '/etc/redhat-release') { Line 62  if (-e '/etc/redhat-release') {
         $dist = 'rhes'.$1;          $dist = 'rhes'.$1;
     } elsif ($versionstring =~ /Red Hat Enterprise Linux Server release (\d+)/) {      } elsif ($versionstring =~ /Red Hat Enterprise Linux Server release (\d+)/) {
         $dist = 'rhes'.$1;          $dist = 'rhes'.$1;
       } elsif ($versionstring =~ /Red Hat Enterprise Linux release (\d+)/) {
           $dist = 'rhes'.$1;
     } elsif ($versionstring =~ /CentOS(?:| Linux) release (\d+)/) {      } elsif ($versionstring =~ /CentOS(?:| Linux) release (\d+)/) {
         $dist = 'centos'.$1;          $dist = 'centos'.$1;
     } elsif ($versionstring =~ /Scientific Linux (?:SL )?release ([\d.]+) /) {      } elsif ($versionstring =~ /Scientific Linux (?:SL )?release ([\d.]+) /) {

Removed from v.1.21  
changed lines
  Added in v.1.23


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