From: Bruno Haible Date: Mon, 14 Oct 2024 15:24:52 +0000 (+0200) Subject: its: Work around xmllint bug. X-Git-Tag: v0.23~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8236681dbc1a46b5f5f16ea17aaea8377650719;p=thirdparty%2Fgettext.git its: Work around xmllint bug. * gettext-tools/its/Makefile.am (check-local): Skip the ITS_FILES checks if xmllint cannot grok the its.xsd schema. --- diff --git a/gettext-tools/its/Makefile.am b/gettext-tools/its/Makefile.am index 47c74e692..e372a4311 100644 --- a/gettext-tools/its/Makefile.am +++ b/gettext-tools/its/Makefile.am @@ -36,12 +36,15 @@ LOC_FILES = \ dist_its_DATA = $(ITS_FILES) $(LOC_FILES) # Checks the XML files against their schemas. +# Work around . check-local: - @for file in $(ITS_FILES); do \ - echo "Checking $$file..."; \ - echo "$(XMLLINT) --noout --schema $(top_srcdir)/src/its.xsd $(srcdir)/$$file"; \ - $(XMLLINT) --noout --schema $(top_srcdir)/src/its.xsd $(srcdir)/$$file || exit 1; \ - done + @if echo '' | $(XMLLINT) --noout --schema $(top_srcdir)/src/its.xsd - >/dev/null 2>&1; then \ + for file in $(ITS_FILES); do \ + echo "Checking $$file..."; \ + echo "$(XMLLINT) --noout --schema $(top_srcdir)/src/its.xsd $(srcdir)/$$file"; \ + $(XMLLINT) --noout --schema $(top_srcdir)/src/its.xsd $(srcdir)/$$file || exit 1; \ + done; \ + fi @for file in $(LOC_FILES); do \ echo "Checking $$file..."; \ echo "$(XMLLINT) --noout --schema $(top_srcdir)/src/locating-rules.xsd $(srcdir)/$$file"; \