]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
even better
authorRudolf Polzer <divverent@xonotic.org>
Wed, 22 Feb 2012 13:12:17 +0000 (14:12 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 22 Feb 2012 13:12:17 +0000 (14:12 +0100)
check-translations.sh

index ea747baad652ad6211740da1c52c61e35d4a00a0..8226e45a5c2a672f449527b9b318e6d30b675568 100755 (executable)
@@ -69,8 +69,8 @@ EOF
                        msgmerge -F -U "$X" "$VM".dat.pot >&2
                        msgattrib --untranslated "$X" | grep . > "$X".untranslated || rm -f "$X".untranslated
                        msgattrib --fuzzy "$X"        | grep . > "$X".fuzzy        || rm -f "$X".fuzzy
-                       nu=$((`grep -c ^#: "$X".untranslated` + 0))
-                       nf=$((`grep -c ^#: "$X".fuzzy`        + 0))
+                       nu=$((`grep -c ^#: "$X".untranslated 2>/dev/null` + 0))
+                       nf=$((`grep -c ^#: "$X".fuzzy        2>/dev/null` + 0))
                        n=$(($nu + $nf))
                        if [ $n -gt 0 ]; then
                                echo "TODO for translation $X:"