projects
/
pgtranslation
/
admin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e01758
)
Also flag warnings
author
Peter Eisentraut
<peter_e@gmx.net>
Thu, 13 May 2010 15:58:01 +0000
(15:58 +0000)
committer
Peter Eisentraut
<peter_e@gmx.net>
Thu, 13 May 2010 15:58:01 +0000
(15:58 +0000)
cp-po
patch
|
blob
|
blame
|
history
diff --git
a/cp-po
b/cp-po
index 35b05ce7039763cddc2174c9fedf28c22bb8c89a..504b7f2ffe13ce274f6013aa1989ee4d06fafac3 100755
(executable)
--- 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