ci: Update common files from meta-phosh

This updates to commit f3c92e90dcc0d65322888217429b75dd101bd0d3
This commit is contained in:
Guido Günther
2024-06-12 16:24:33 +02:00
parent c3b4877dfe
commit e9743f3daa
4 changed files with 126 additions and 33 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
cd po/ || exit 1
# barf on untranslated C files. Seems intltool
# can't be told to exit with non-zero exit status
# in this case
if intltool-update -m 2>&1 | grep -E -qs '/.*\.(c|ui)'; then
intltool-update -m
exit 1
fi
# Check for broken po files
for file in *.po; do
echo -n "Checking ${file}: "
msgfmt -v -c "${file}"
# Check for errors, msgfmt returns 0 on errors too
if msgfmt -c "${file}" 2>&1 | grep -qs 'fatal error'; then
exit 1
fi
done