1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-12-12 00:08:50 +01:00
HLMetaModOfficial/support/buildbot/startbuild.pl

28 lines
376 B
Perl
Raw Normal View History

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