Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106149518
D28299.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28299.diff
View Options
Index: Makefile
===================================================================
--- Makefile
+++ Makefile
@@ -31,7 +31,12 @@
dir_DTD= share/xml/dtd/vuxml
VUXML_FILE?= ${PKGDIR}/vuln.xml
+VUXML_FLAT_FILE?= ${PKGDIR}/vuln-flat.xml
+post-clean:
+ @${RM} "${VUXML_FILE}.tidy"
+ @${RM} "${VUXML_FLAT_FILE}"
+
do-extract:
@${RM} -r ${WRKDIR}
@${MKDIR} ${WRKDIR}
@@ -54,9 +59,9 @@
xmllint -noent ${.ALLSRC} > ${.TARGET}
validate: tidy
- @${SH} ${FILESDIR}/validate.sh "${VUXML_FILE}"
+ @${SH} ${FILESDIR}/validate.sh "${VUXML_FLAT_FILE}"
@${ECHO_MSG} Checking if tidy differs...
- @if ${DIFF} -u "${VUXML_FILE}" "${VUXML_FILE}.tidy"; \
+ @if ${DIFF} -u "${VUXML_FLAT_FILE}" "${VUXML_FILE}.tidy"; \
then \
${ECHO_MSG} ... seems okay; \
${RM} "${VUXML_FILE}.tidy"; \
@@ -64,8 +69,8 @@
return 1; \
fi
@${ECHO_MSG} Checking for space/tab...
- @unexpand "${VUXML_FILE}" | ${SED} -E 's,[[:space:]]*$$,,g' > "${VUXML_FILE}.unexpanded"
- @if ${DIFF} -u "${VUXML_FILE}" "${VUXML_FILE}.unexpanded"; \
+ @unexpand "${VUXML_FLAT_FILE}" | ${SED} -E 's,[[:space:]]*$$,,g' > "${VUXML_FILE}.unexpanded"
+ @if ${DIFF} -u "${VUXML_FLAT_FILE}" "${VUXML_FILE}.unexpanded"; \
then \
${ECHO_MSG} ... seems okay; \
${RM} "${VUXML_FILE}.unexpanded"; \
@@ -76,13 +81,13 @@
fi
${PYTHON_CMD} ${FILESDIR}/extra-validation.py ${VUXML_FILE}
-tidy: vuln.xml
+tidy: vuln-flat.xml
@if [ ! -e ${LOCALBASE}/share/xml/dtd/vuxml/catalog.xml ]; \
then \
echo "Please install the VuXML port prior to running make validate/tidy."; \
exit 1; \
fi
- ${SH} ${FILESDIR}/tidy.sh "${FILESDIR}/tidy.xsl" "${VUXML_FILE}" > "${VUXML_FILE}.tidy"
+ ${SH} ${FILESDIR}/tidy.sh "${FILESDIR}/tidy.xsl" "${VUXML_FLAT_FILE}" > "${VUXML_FILE}.tidy"
newentry:
@${SH} ${FILESDIR}/newentry.sh "${VUXML_FILE}"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 5:21 AM (10 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15611451
Default Alt Text
D28299.diff (1 KB)
Attached To
Mode
D28299: security/vuxml: fix validate target due to split of files
Attached
Detach File
Event Timeline
Log In to Comment