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

This commit is contained in:
Thomas Haller 2020-09-07 14:46:55 +02:00
parent a39e1ab16e
commit 97c1bed37e
No known key found for this signature in database
GPG Key ID: 29C2366E4DFC5728

View File

@ -5301,6 +5301,20 @@ endif
###############################################################################
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" ; \
exit 1 ; \
fi ; \
done
check_local += check-po-msgfmt
###############################################################################
check-local: $(check_local)
dist-hook: $(dist_hook)