]> git.lyx.org Git - features.git/commitdiff
pocheck: Set the exit value
authorVincent van Ravesteijn <vfr@lyx.org>
Sat, 12 Oct 2013 00:35:33 +0000 (02:35 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Sat, 12 Oct 2013 00:37:55 +0000 (02:37 +0200)
po/pocheck.pl

index 9dd416026af21ff708e7b845e32e50a5e2fa02e1..68dd83f23c4978d80f43d402d8d96b7c43f6fff0 100755 (executable)
@@ -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);
+