build: fix test for valid po files (msgfmt -vc)

Otherwise, the test generates an "messages.mo" file.

Fixes: 97c1bed3 ('build: add test for valid po files (msgfmt -vc)')
(cherry picked from commit ad55cf86)
(cherry picked from commit 9b5ef3aa)
parent 84f9cbab
Pipeline #199362 canceled with stage
in 18 minutes and 59 seconds
......@@ -5173,9 +5173,9 @@ include Makefile.examples
check-po-msgfmt:
@echo "check-po-msgfmt: check $(top_srcdir)/po/*.po files with msgfmt -vc"
@for f in "$(top_srcdir)/po"/*.po ; do \
if ! msgfmt -vc "$$f" &>/dev/null ; then \
echo "invalid po file: msgfmt -vc $$f" ; \
msgfmt -vc "$$f" ; \
if ! msgfmt -vc "$$f" -o /dev/null &>/dev/null ; then \
echo "invalid po file: msgfmt -vc $$f -o /dev/null" ; \
msgfmt -vc "$$f" -o /dev/null ; \
exit 1 ; \
fi ; \
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment