amxmodx/support/buildbot/startbuild.pl

26 lines
409 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;
if ($^O eq "linux" || $^O eq "darwin") {
2010-04-05 00:02:16 +00:00
$output = `mono builder.exe directions.info`;
2010-04-04 23:32:15 +00:00
} else {
2010-04-05 00:02:16 +00:00
$output = `builder.exe directions.info`;
2010-04-04 23:32:15 +00:00
}
2010-04-05 00:02:16 +00:00
print $output . "\n";
if (!($output =~ /Build succeeded/)) {
die "Build failed!\n";
} else {
2010-04-04 23:32:15 +00:00
exit(0);
}