Add logic to check for tidy differences in the 'make validate' target.
Approved by: secteam (simon, maintainer)
This commit is contained in:
parent
e6bd7f430f
commit
ca45302d3e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294685
1 changed files with 9 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue