detect syntax erorrs
authorRudolf Polzer <divverent@xonotic.org>
Wed, 22 Feb 2012 13:17:09 +0000 (14:17 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 22 Feb 2012 13:17:30 +0000 (14:17 +0100)
check-translations.sh

index dccc1e8..155029c 100755 (executable)
@@ -64,6 +64,10 @@ for VM in menu csprogs; do
                        changed=false
                        for Y in ~/check-translations/"$X".*; do
                                [ -f "$Y" ] || continue
+                               if ! msgcat "$Y" >/dev/null; then
+                                       echo "File $Y has syntax errors. Skipped."
+                                       continue
+                               fi
                                vim -E "$Y" <<EOF
 set fileencoding=utf-8
 set nobomb