From 7995d9632b66186d13d0b27eecbf98aa2558b9bd Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 3 Feb 2023 13:11:06 +0100 Subject: [PATCH] Remove the stupid qcc calls in check-translations.sh. Much faster and more robust this way. --- check-translations.sh | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) 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." -- 2.39.2