Turns out mono eats exit codes. AWESOME.

This commit is contained in:
David Anderson 2010-04-04 16:58:24 -07:00
parent 1b75b0ba92
commit 5984f0d442
2 changed files with 7 additions and 10 deletions

View File

@ -60,8 +60,7 @@ namespace AMXXRelease
if (!builder.Build(m_Cfg, build))
{
Console.WriteLine("Build failed!");
System.Environment.Exit(1);
throw new Exception("Build failed!");
}
else
{

View File

@ -9,18 +9,16 @@ require 'helpers.pm';
chdir('../../installer/builder');
my $output;
if ($^O eq "linux") {
system("mono builder.exe");
$output = `mono builder.exe`;
} else {
system("builder.exe");
$output = `builder.exe`;
}
if ($? != 0)
{
die "Build failed: $!\n";
}
else
{
if ($output =~ /Build failed/) {
die "Build failed!\n";
} else {
exit(0);
}