From: Rudolf Polzer Date: Fri, 9 Apr 2021 12:51:56 +0000 (+0200) Subject: Compare old and new .pot both ways. X-Git-Tag: xonotic-v0.8.5~458 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=090f40206b90ce05199d7c50e366bdfce5ab8b82;p=xonotic%2Fxonotic-data.pk3dir.git Compare old and new .pot both ways. Apparently msgcmp's return status (not even documented) only yields a one way comparison. --- diff --git a/check-translations.sh b/check-translations.sh index 6a55b5ef7..46ec3ec6c 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -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