]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Compare old and new .pot both ways.
authorRudolf Polzer <divVerent@gmail.com>
Fri, 9 Apr 2021 12:51:56 +0000 (14:51 +0200)
committerRudolf Polzer <divVerent@gmail.com>
Fri, 9 Apr 2021 12:52:39 +0000 (14:52 +0200)
Apparently msgcmp's return status (not even documented) only yields a one way comparison.

check-translations.sh

index 6a55b5ef732f3dff77418a4c06ead7660a8b2a6b..46ec3ec6c9121cb7bdf6bdc705a44f95545729c1 100755 (executable)
@@ -57,7 +57,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