Removed some debug code, and hopefully fixed misleading failures.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402500
This commit is contained in:
David Anderson 2008-09-06 10:18:26 +00:00
parent f99b82b53a
commit d6a0cb8992
2 changed files with 18 additions and 2 deletions

View File

@ -16,4 +16,21 @@ if ($^O eq "linux")
$cmd = 'mono ' . $cmd;
}
system($cmd) or die "Build failed: $!\n";
system($cmd);
if ($? == -1)
{
die "Build failed: $!\n";
}
elsif ($^O eq "linux" and $? & 127)
{
die "Build died :(\n";
}
elsif ($? >> 8 != 0)
{
die "Build failed with exit code: " . ($? >> 8) . "\n";
}
else
{
exit(0);
}

View File

@ -44,7 +44,6 @@ namespace builder
p.WaitForExit();
p.Close();
Console.WriteLine("Debug: wd = " + info.WorkingDirectory + " fn = " + info.FileName + " arg = " + info.Arguments);
Console.WriteLine(output);
string binary = Config.PathFormat("{0}/{1}/addons/sourcemod/scripting/{2}.smx", cfg.pkg_path, pkg.GetBaseFolder(), pl.Source);