mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 12:38:10 +02:00
build: fix test for valid po files (msgfmt -vc)
Otherwise, the test generates an "messages.mo" file. Fixes:97c1bed37e('build: add test for valid po files (msgfmt -vc)') (cherry picked from commitad55cf86e8)
This commit is contained in:
parent
a26ea9a634
commit
9b5ef3aaea
1 changed files with 3 additions and 3 deletions
|
|
@ -5263,9 +5263,9 @@ include Makefile.examples
|
||||||
check-po-msgfmt:
|
check-po-msgfmt:
|
||||||
@echo "check-po-msgfmt: check $(top_srcdir)/po/*.po files with msgfmt -vc"
|
@echo "check-po-msgfmt: check $(top_srcdir)/po/*.po files with msgfmt -vc"
|
||||||
@for f in "$(top_srcdir)/po"/*.po ; do \
|
@for f in "$(top_srcdir)/po"/*.po ; do \
|
||||||
if ! msgfmt -vc "$$f" &>/dev/null ; then \
|
if ! msgfmt -vc "$$f" -o /dev/null &>/dev/null ; then \
|
||||||
echo "invalid po file: msgfmt -vc $$f" ; \
|
echo "invalid po file: msgfmt -vc $$f -o /dev/null" ; \
|
||||||
msgfmt -vc "$$f" ; \
|
msgfmt -vc "$$f" -o /dev/null ; \
|
||||||
exit 1 ; \
|
exit 1 ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue