git: 21c57a3d9854 - main - security/vuxml: Fix `make validate` to use the latest vuxml file
Li-Wen Hsu
lwhsu at FreeBSD.org
Wed Jun 23 18:22:04 UTC 2021
The branch main has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=21c57a3d9854730f915fe2a45f4e0e5b66e99c94
commit 21c57a3d9854730f915fe2a45f4e0e5b66e99c94
Author: Li-Wen Hsu <lwhsu at FreeBSD.org>
AuthorDate: 2021-06-23 18:21:56 +0000
Commit: Li-Wen Hsu <lwhsu at FreeBSD.org>
CommitDate: 2021-06-23 18:21:56 +0000
security/vuxml: Fix `make validate` to use the latest vuxml file
This is a follow up for 6954792fe916862afd25cf6ce961bd7062dfb21f
Approved by: ports-secteam (fluffy)
---
security/vuxml/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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>
More information about the dev-commits-ports-all
mailing list