sourcemod/tools/buildbot/startbuild.pl

28 lines
376 B
Perl
Raw Normal View History

#!/usr/bin/perl
2009-08-30 09:21:42 +02:00
# vim: set ts=2 sw=2 tw=99 noet:
use File::Basename;
my ($myself, $path) = fileparse($0);
chdir($path);
require 'helpers.pm';
2009-08-30 09:21:42 +02:00
chdir('../../../OUTPUT');
if ($^O eq "linux" || $^O eq "darwin") {
system("python3 build.py 2>&1");
2009-08-30 09:21:42 +02:00
} else {
system("C:\\Python31\\python.exe build.py 2>&1");
}
2009-08-30 09:21:42 +02:00
if ($? != 0)
{
2009-08-30 09:21:42 +02:00
die "Build failed: $!\n";
}
else
{
2009-08-30 09:21:42 +02:00
exit(0);
}
2009-08-30 09:21:42 +02:00