From: Rudolf Polzer Date: Fri, 3 Feb 2023 12:11:06 +0000 (+0100) Subject: Remove the stupid qcc calls in check-translations.sh. X-Git-Tag: xonotic-v0.8.6~187 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7995d9632b66186d13d0b27eecbf98aa2558b9bd;p=xonotic%2Fxonotic-data.pk3dir.git Remove the stupid qcc calls in check-translations.sh. Much faster and more robust this way. --- diff --git a/check-translations.sh b/check-translations.sh index 2ed33df73..f452283a0 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -31,36 +31,12 @@ case "$1" in esac if [ x"$mode" = x"pot" ]; then - make QCC="../../../../gmqcc/gmqcc" clean - make QCC="../../../../gmqcc/gmqcc" { - grep -h '^\.' .tmp/*_includes.txt | cut -d ' ' -f 2 | sed -e 's,^,qcsrc/,' | while IFS= read -r name; do - while :; do - case "$name" in - */./*) - name=${name%%/./*}/${name#*/./} - ;; - ./*) - name=${name#./} - ;; - */*/../*) - before=${name%%/../*} - before=${before%/*} - name=$before/${name#*/../} - ;; - */../*) - name=${name#*/../} - ;; - *) - break - ;; - esac - done - echo "$name" - done | sort -u + git ls-files qcsrc | 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 && msgcmp -N --use-untranslated common.pot.new common.pot; then echo "No contentful changes to common.pot - OK." + ls -la common.pot common.pot.new rm -f common.pot.new else echo "Updating common.pot. This probably should be committed."