]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - check-translations.sh
check-translations.sh: bail out if QCC not found
[xonotic/xonotic-data.pk3dir.git] / check-translations.sh
index 6a55b5ef732f3dff77418a4c06ead7660a8b2a6b..2ed33df730a697171deb49488fa6b745fabdcc89 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+set -e
+
 case "$1" in
        pot)
                mode=pot
@@ -57,7 +59,7 @@ if [ x"$mode" = x"pot" ]; then
                        echo "$name"
                done | sort -u
        } | xgettext -LC -k_ -f- --from-code utf-8 -F -o common.pot.new >&2
-       if msgcmp -N --use-untranslated common.pot common.pot.new; then
+       if msgcmp -N --use-untranslated common.pot common.pot.new && msgcmp -N --use-untranslated common.pot.new common.pot; then
                echo "No contentful changes to common.pot - OK."
                rm -f common.pot.new
        else