X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=po%2Fpocheck.pl;h=1cd3a8c94e6e1a5f5790c5c1e734189526515b45;hb=e08512e7fdfcb34d45c22c132aa7f45fc9303474;hp=9dd416026af21ff708e7b845e32e50a5e2fa02e1;hpb=8881a443fb8f2717643021f883ee3d42931d024f;p=lyx.git diff --git a/po/pocheck.pl b/po/pocheck.pl index 9dd416026a..1cd3a8c94e 100755 --- a/po/pocheck.pl +++ b/po/pocheck.pl @@ -1,4 +1,5 @@ #! /usr/bin/perl -w +# -*- mode: perl; -*- # file pocheck.pl # @@ -57,6 +58,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 +242,8 @@ foreach my $pofilename ( @ARGV ) { } print "\n"; } + $total_warn += $warn; } + +exit ($total_warn > 0); +