diff options
author | Thomas Haller <thaller@redhat.com> | 2020-09-07 14:46:55 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-09-07 14:56:50 +0200 |
commit | 97c1bed37e46906f5450f53333e903c679f47ffe (patch) | |
tree | 72d6cd08cfb497bfbc5b777fcd85302d45cf5449 | |
parent | a39e1ab16e71312dccbedc8405398ca59162552b (diff) | |
download | NetworkManager-97c1bed37e46906f5450f53333e903c679f47ffe.tar.gz |
build: add test for valid po files (msgfmt -vc)
-rw-r--r-- | Makefile.am | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index bfb448c29f..f082e7991e 100644 --- a/Makefile.am +++ b/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) dist-hook: $(dist_hook) |