Fixed buildbot Perl scripts for Mac OS X build (bug 5601, r=dvander).

Former-commit-id: 375e91c1d22c5cc2a9107bbc804cbc17794421d4
This commit is contained in:
Scott Ehlert
2013-02-13 01:22:40 -06:00
parent e5b990b8e0
commit 7f13ae3e4f
3 changed files with 13 additions and 7 deletions

View File

@@ -33,8 +33,9 @@ $version .= '-hg' . Build::HgRevNum('.');
#Switch to the output folder.
chdir(Build::PathFormat('../../../OUTPUT'));
my (@packages);
my (@packages,@mac_exclude);
@packages = ('base', 'cstrike', 'dod', 'esf', 'ns', 'tfc', 'ts');
@mac_exclude = ('esf', 'ns', 'ts');
my ($major,$minor) = ($version =~ /^(\d+)\.(\d+)/);
$ftp_path .= "/$major.$minor";
@@ -58,9 +59,12 @@ my ($i);
for ($i = 0; $i <= $#packages; $i++) {
my ($filename);
if ($^O eq "linux") {
$filename = "amxmodx-$version-" . $packages[$i] . ".tar.gz";
$filename = "amxmodx-$version-" . $packages[$i] . "-linux.tar.gz";
} elsif ($^O eq "darwin") {
next if ($packages[$i] ~~ @mac_exclude);
$filename = "amxmodx-$version-" . $packages[$i] . "-mac.zip";
} else {
$filename = "amxmodx-$version-" . $packages[$i] . ".zip";
$filename = "amxmodx-$version-" . $packages[$i] . "-windows.zip";
}
print "Uploading $filename...\n";
$ftp->put($filename)