From: Peter Eisentraut Date: Thu, 13 May 2010 15:58:01 +0000 (+0000) Subject: Also flag warnings X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=014c7f0305e61faed42f60c2ab2648a36bcf08df;p=pgtranslation%2Fadmin.git Also flag warnings --- diff --git a/cp-po b/cp-po index 35b05ce..504b7f2 100755 --- a/cp-po +++ b/cp-po @@ -64,6 +64,16 @@ for srcfile in $(find "$srcdir" -name '*.po'); do fi fi + if msgfmt -o /dev/null -c -v $srcfile 2>&1 | grep -q "warning"; then + echo "$me: $srcfile has warnings" 1>&2 + msgfmt -o /dev/null -c -v $srcfile || : + if $force; then + echo "$me: copying anyway, as requested" 1>&2 + else + continue + fi + fi + for y in $nls_mks; do destcat=$(cat $y | sed -n 's/CATALOG_NAME.*:*= *\([^ ]*\)$/\1/p') if [ -z "$destcat" ]; then