See if a build will run!

This commit is contained in:
David Anderson 2010-04-04 16:32:15 -07:00
parent 1d3f91be43
commit 24bfff9cf1
2 changed files with 16 additions and 3 deletions

View File

@ -55,7 +55,8 @@ print DIRECTIONS "release = amxmodx-" . Build::ProductVersion('product.version')
"-hg" . Build::HgRevNum('.') . "\n";
close(DIRECTIONS);
#Clean the output path.
#Clean the output path. Create dir twice for abs_path hack (Windows).
Build::Command("mkdir ../OUTPUT");
Build::Delete("" . Cwd::abs_path('../OUTPUT'));
Build::Command("mkdir \"" . Cwd::abs_path('../OUTPUT') . "\"");
Build::Command("mkdir ../OUTPUT");

View File

@ -2,7 +2,6 @@
use File::Basename;
our (@LIBRARIES);
my ($myself, $path) = fileparse($0);
chdir($path);
@ -10,5 +9,18 @@ require 'helpers.pm';
chdir('../../installer/builder');
if ($^O eq "linux") {
system("mono builder.exe");
} else {
system("builder.exe");
}
if ($? != 0)
{
die "Build failed: $!\n";
}
else
{
exit(0);
}