From: Vincent van Ravesteijn Date: Sat, 12 Oct 2013 00:35:33 +0000 (+0200) Subject: pocheck: Set the exit value X-Git-Tag: 2.1.0beta2~17 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8a0b9b39f4587341c61def961f27442cf4650202;p=features.git pocheck: Set the exit value --- diff --git a/po/pocheck.pl b/po/pocheck.pl index 9dd416026a..68dd83f23c 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); +