cross-plat-dev-utils/build_target.pl
changeset 10 b2a53d442fd6
parent 6 787612182dd0
--- a/cross-plat-dev-utils/build_target.pl	Thu May 13 19:18:16 2010 +0100
+++ b/cross-plat-dev-utils/build_target.pl	Sat May 15 14:32:45 2010 +0100
@@ -58,12 +58,19 @@
 my $cmd = "$raptor -c tools2 -b $bld_inf @ARGV";
 print ">>> Executing: $cmd\n";
 my $rc = system($cmd) >> 8;
+my $warnings = 0;
 my @build_logs = glob($log_pattern);
 open BLDLOG, "<$build_logs[-1]" or die $!;
 while(<BLDLOG>) {
     print $_;
+	++$warnings, if (/<warning>/);
 }
 close BLDLOG;
+print "*** Build failed ***\n", if ($rc);
+if ($warnings) {
+	print "*** Build has warnings ***\n";
+	$rc = 1;
+}
 exit $rc;