Don't abort when one file is broken
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 29 Nov 2007 08:27:33 +0000 (08:27 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 29 Nov 2007 08:27:33 +0000 (08:27 +0000)
cp-po

diff --git a/cp-po b/cp-po
index 03421aabcfb493661f0aedae5ec64669713da722..92e9afea1c29d72b7417647c4699827a604420de 100755 (executable)
--- a/cp-po
+++ b/cp-po
@@ -45,8 +45,8 @@ for srcfile in $(find "$srcdir" -name '*.po'); do
 
        if ! msgfmt -o /dev/null -c -v $srcfile 2>/dev/null; then
                echo "$me: $srcfile has errors" 1>&2
-               msgfmt -o /dev/null -c -v $srcfile
-               exit 1
+               msgfmt -o /dev/null -c -v $srcfile || :
+               continue
        fi
 
        for y in $nls_mks; do