1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-20 09:52:24 +01:00

30 lines
362 B
Perl
Raw Normal View History

2008-11-18 03:22:50 -06:00
#!/usr/bin/perl
# vim: set ts=2 sw=2 tw=99 noet:
2008-11-18 03:22:50 -06:00
use File::Basename;
my ($myself, $path) = fileparse($0);
chdir($path);
require 'helpers.pm';
chdir('../../../OUTPUT');
2008-11-18 03:22:50 -06:00
my $argn = $#ARGV + 1;
if ($argn > 0) {
$ENV{CC} = $ARGV[0];
$ENV{CXX} = $ARGV[0];
}
2013-11-18 10:14:38 -08:00
system("ambuild --no-color 2>&1");
2008-11-18 03:22:50 -06:00
if ($? != 0)
2008-11-18 03:22:50 -06:00
{
die "Build failed: $!\n";
2008-11-18 04:21:53 -06:00
}
else
2008-11-18 03:22:50 -06:00
{
exit(0);
2008-11-18 03:22:50 -06:00
}