amxmodx/support/buildbot/startbuild.pl
Scott Ehlert 7f13ae3e4f Fixed buildbot Perl scripts for Mac OS X build (bug 5601, r=dvander).
Former-commit-id: 375e91c1d22c5cc2a9107bbc804cbc17794421d4
2013-02-13 01:22:40 -06:00

26 lines
409 B
Perl
Executable File

#!/usr/bin/perl
use File::Basename;
my ($myself, $path) = fileparse($0);
chdir($path);
require 'helpers.pm';
chdir('../../installer/builder');
my $output;
if ($^O eq "linux" || $^O eq "darwin") {
$output = `mono builder.exe directions.info`;
} else {
$output = `builder.exe directions.info`;
}
print $output . "\n";
if (!($output =~ /Build succeeded/)) {
die "Build failed!\n";
} else {
exit(0);
}