amxmodx/support/buildbot/startbuild.pl

33 lines
421 B
Perl
Raw Normal View History

#!/usr/bin/perl
use File::Basename;
my ($myself, $path) = fileparse($0);
chdir($path);
require 'helpers.pm';
chdir('../../../OUTPUT');
my $argn = $#ARGV + 1;
if ($argn > 0) {
$ENV{CC} = $ARGV[0];
$ENV{CXX} = $ARGV[0];
2010-04-04 23:32:15 +00:00
}
2021-02-10 21:32:02 +00:00
if ($^O !~ /MSWin/) {
system("ambuild --no-color 2>&1");
} else {
system("C:\\Python38\\scripts\\ambuild --no-color 2>&1");
}
if ($? != 0)
{
die "Build failed: $!\n";
}
else
{
2010-04-04 23:32:15 +00:00
exit(0);
}