mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 05:58:01 +02:00
build: add test for valid po files (msgfmt -vc)
(cherry picked from commit97c1bed37e) (cherry picked from commita26ea9a634)
This commit is contained in:
parent
67bb9896b3
commit
84f9cbabd2
1 changed files with 14 additions and 0 deletions
14
Makefile.am
14
Makefile.am
|
|
@ -5170,6 +5170,20 @@ 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" ; \
|
||||||
|
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…
Add table
Reference in a new issue