amxmodx/support/buildbot/startbuild.pl

27 lines
299 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');
2010-04-05 03:32:15 +04:00
if ($^O eq "linux") {
system("mono builder.exe");
} else {
system("builder.exe");
}
2010-04-05 03:32:15 +04:00
if ($? != 0)
{
die "Build failed: $!\n";
}
else
{
exit(0);
}