Changeset 146


Ignore:
Timestamp:
Sep 13, 2007, 6:07:14 PM (11 years ago)
Author:
bruno
Message:

Adds support for VMWare build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Distribution.pm

    r108 r146  
    4444        ($ddir =~ /rhel/) ||
    4545        ($ddir =~ /fedora/) ||
     46        ($ddir =~ /vmware/) ||
    4647        ($ddir =~ /centos/)) {
    4748    $dfam="rh";
     
    5354    } elsif ($ddir =~ /redhat/) {
    5455        $dsuf=".rh$dver1";
     56    } elsif ($ddir =~ /vmware/) {
     57        $dsuf=".vwm$dver1";
    5558    } else {
    5659        $dsuf=".$ddir$dver1";
     
    98101    'mandriva'          =>  'mandriva-release',     # >=2006.0
    99102    'fedora'            =>  'fedora-release',       # >= 4
     103    'vmware'            =>  'vmware-release',       # >= 3
    100104    'sles'              =>  'sles-release',         # ???
    101105# Untested
     
    140144    'mandrake'          => ['mandrake'],
    141145    'suse'              => ['suse', 'sles'],
    142     'redhat'            => ['redhat', 'rhel', 'centos', 'mandrake'],
     146    'redhat'            => ['redhat', 'rhel', 'centos', 'mandrake', 'vmware'],
    143147    'lsb'               => ['ubuntu', 'debian', 'lsb'],
    144148    );
     
    153157    'mandriva'              => 'Mandr[^ ]* [^ ]* release (.+) \(',
    154158    'fedora'                => 'Fedora .*release (\d+) \(',
     159    'vmware'                => 'VMware ESX Server (\d+) \(',
    155160    'rhel'                  => 'Red Hat Enterprise Linux .*release (.+) \(',
    156161    'centos'                => '.*CentOS .*release (.+) ',
Note: See TracChangeset for help on using the changeset viewer.