Add logic to check for tidy differences in the 'make validate' target.

Approved by:	secteam (simon, maintainer)
This commit is contained in:
Eitan Adler 2012-04-12 00:16:50 +00:00
parent e6bd7f430f
commit ca45302d3e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294685

View file

@ -74,10 +74,17 @@ do-install:
${XMLCAT_ADD}
${SGMLCAT_ADD}
validate:
validate: tidy
@${SH} ${FILESDIR}/validate.sh "${VUXML_FILE}"
@${ECHO_MSG} Checking if tidy differs...
@if ${DIFF} -u "${VUXML_FILE}" "${VUXML_FILE}.tidy"; \
then \
${ECHO_MSG} ... seems okay; \
else \
return 1; \
fi
tidy:
tidy: vuln.xml
${SH} ${FILESDIR}/tidy.sh "${FILESDIR}/tidy.xsl" "${VUXML_FILE}" > "${VUXML_FILE}.tidy"
newentry: