commit 8a0b9b39f4587341c61def961f27442cf4650202
Author: Vincent van Ravesteijn <[email protected]>
Date: Sat Oct 12 02:35:33 2013 +0200
pocheck: Set the exit value
diff --git a/po/pocheck.pl b/po/pocheck.pl
index 9dd4160..68dd83f 100755
--- a/po/pocheck.pl
+++ b/po/pocheck.pl
@@ -57,6 +57,8 @@ my $check_trans = (!%options or defined($options{t}));
my %trans;
+my $total_warn = 0;
+
foreach my $pofilename ( @ARGV ) {
my %bad;
if (!$silent_mode) {
@@ -239,4 +241,8 @@ foreach my $pofilename ( @ARGV ) {
}
print "\n";
}
+ $total_warn += $warn;
}
+
+exit ($total_warn > 0);
+