mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 19:28:53 +00:00
Allow xmllint to be used for XML docs validation.
xmllint seems to be more commonly available since it comes with libxml2. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@277703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
12
Makefile
12
Makefile
@@ -527,12 +527,16 @@ doc/core-en_US.xml: $(foreach dir,$(MOD_SUBDIRS),$(shell $(GREP) -l "language=\"
|
||||
@echo "</docs>" >> $@
|
||||
|
||||
validate-docs: doc/core-en_US.xml
|
||||
ifeq ($(XMLSTARLET),:)
|
||||
@echo "---------------------------------------------------------------"
|
||||
@echo "--- Please install xmlstarlet to validate the documentation ---"
|
||||
@echo "---------------------------------------------------------------"
|
||||
ifeq ($(XMLSTARLET)$(XMLLINT),::)
|
||||
@echo "--------------------------------------------------------------------------"
|
||||
@echo "--- Please install xmllint or xmlstarlet to validate the documentation ---"
|
||||
@echo "--------------------------------------------------------------------------"
|
||||
else
|
||||
ifneq ($(XMLLINT),:)
|
||||
$(XMLLINT) --dtdvalid doc/appdocsxml.dtd --noout $<
|
||||
else
|
||||
$(XMLSTARLET) val -d doc/appdocsxml.dtd $<
|
||||
endif
|
||||
endif
|
||||
|
||||
update:
|
||||
|
Reference in New Issue
Block a user