mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 20:45:32 +00:00
build: add test for valid po files (msgfmt -vc)
This commit is contained in:
parent
a39e1ab16e
commit
97c1bed37e
14
Makefile.am
14
Makefile.am
|
@ -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)
|
check-local: $(check_local)
|
||||||
|
|
||||||
dist-hook: $(dist_hook)
|
dist-hook: $(dist_hook)
|
||||||
|
|
Loading…
Reference in a new issue