Removed some debug code, and hopefully fixed misleading failures.
Removed some debug code, and hopefully fixed misleading failures.
1.1 --- a/tools/buildbot/startbuild.pl Sat Sep 06 09:40:44 2008 +0000
1.2 +++ b/tools/buildbot/startbuild.pl Sat Sep 06 10:18:26 2008 +0000
1.3 @@ -16,4 +16,21 @@
1.4 $cmd = 'mono ' . $cmd;
1.5 }
1.6
1.7 -system($cmd) or die "Build failed: $!\n";
1.8 +system($cmd);
1.9 +
1.10 +if ($? == -1)
1.11 +{
1.12 + die "Build failed: $!\n";
1.13 +}
1.14 +elsif ($^O eq "linux" and $? & 127)
1.15 +{
1.16 + die "Build died :(\n";
1.17 +}
1.18 +elsif ($? >> 8 != 0)
1.19 +{
1.20 + die "Build failed with exit code: " . ($? >> 8) . "\n";
1.21 +}
1.22 +else
1.23 +{
1.24 + exit(0);
1.25 +}
2.1 --- a/tools/builder/ABuilder.cs Sat Sep 06 09:40:44 2008 +0000
2.2 +++ b/tools/builder/ABuilder.cs Sat Sep 06 10:18:26 2008 +0000
2.3 @@ -44,7 +44,6 @@
2.4 p.WaitForExit();
2.5 p.Close();
2.6
2.7 - Console.WriteLine("Debug: wd = " + info.WorkingDirectory + " fn = " + info.FileName + " arg = " + info.Arguments);
2.8 Console.WriteLine(output);
2.9
2.10 string binary = Config.PathFormat("{0}/{1}/addons/sourcemod/scripting/{2}.smx", cfg.pkg_path, pkg.GetBaseFolder(), pl.Source);