amxmodx/support/buildbot/startbuild.pl

25 lines
330 B
Perl
Raw Normal View History

#!/usr/bin/perl
use File::Basename;
my ($myself, $path) = fileparse($0);
chdir($path);
require 'helpers.pm';
chdir('../../installer/builder');
my $output;
2010-04-04 23:32:15 +00:00
if ($^O eq "linux") {
$output = `mono builder.exe`;
2010-04-04 23:32:15 +00:00
} else {
$output = `builder.exe`;
2010-04-04 23:32:15 +00:00
}
if ($output =~ /Build failed/) {
die "Build failed!\n";
} else {
2010-04-04 23:32:15 +00:00
exit(0);
}