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 @@ public void Release(string file)
if (!builder.Build(m_Cfg, build)) if (!builder.Build(m_Cfg, build))
{ {
Console.WriteLine("Build failed!"); throw new Exception("Build failed!");
System.Environment.Exit(1);
} }
else else
{ {

View File

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