aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2021-06-23 18:21:56 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2021-06-23 18:21:56 +0000
commit21c57a3d9854730f915fe2a45f4e0e5b66e99c94 (patch)
treee204d3e139d4f4c7d314fbf0c59e35aa428e6d93
parent80b697561519d27e60126fe0eb0fd8deb27039e7 (diff)
downloadports-21c57a3d9854730f915fe2a45f4e0e5b66e99c94.tar.gz
ports-21c57a3d9854730f915fe2a45f4e0e5b66e99c94.zip
security/vuxml: Fix `make validate` to use the latest vuxml file
This is a follow up for 6954792fe916862afd25cf6ce961bd7062dfb21f Approved by: ports-secteam (fluffy)
-rw-r--r--security/vuxml/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/security/vuxml/Makefile b/security/vuxml/Makefile
index c844f64d7ee1..4bbc740bcdab 100644
--- a/security/vuxml/Makefile
+++ b/security/vuxml/Makefile
@@ -31,6 +31,8 @@ dir_DTD= share/xml/dtd/vuxml
VUXML_FILE?= ${PKGDIR}/vuln.xml
VUXML_FLAT_FILE?= ${PKGDIR}/vuln-flat.xml
+_YEAR!= date +%Y
+VUXML_CURRENT_FILE?= ${PKGDIR}/vuln-${_YEAR}.xml
post-clean:
@${RM} "${VUXML_FILE}.tidy"
@@ -89,7 +91,7 @@ tidy: vuln-flat.xml
${SH} ${FILESDIR}/tidy.sh "${FILESDIR}/tidy.xsl" "${VUXML_FLAT_FILE}" > "${VUXML_FILE}.tidy"
newentry:
- @${SH} ${FILESDIR}/newentry.sh "${VUXML_FILE}"
+ @${SH} ${FILESDIR}/newentry.sh "${VUXML_CURRENT_FILE}"
.include <bsd.port.pre.mk>