mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
In validate target, use unexpand and sed to make sure that we are using
consistent space style. Reviewed by: stas, simon
This commit is contained in:
parent
41d7484e24
commit
41a97d8f46
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=315339
@ -80,6 +80,17 @@ validate: tidy
|
||||
else \
|
||||
return 1; \
|
||||
fi
|
||||
@${ECHO_MSG} Checking for space/tab...
|
||||
@unexpand "${VUXML_FILE}" | ${SED} 's,[[:space:]]*$$,,g' > "${VUXML_FILE}.unexpanded"
|
||||
@if ${DIFF} -u "${VUXML_FILE}" "${VUXML_FILE}.unexpanded"; \
|
||||
then \
|
||||
${ECHO_MSG} ... seems okay; \
|
||||
${RM} "${VUXML_FILE}.unexpanded"; \
|
||||
else \
|
||||
${ECHO_MSG} ... see above; \
|
||||
${ECHO_CMD} Consider using ${VUXML_FILE}.unexpanded for final commit; \
|
||||
return 1; \
|
||||
fi
|
||||
|
||||
tidy: vuln.xml
|
||||
@if [ ! -e ${LOCALBASE}/share/xml/dtd/vuxml/catalog.xml ]; \
|
||||
|
Loading…
Reference in New Issue
Block a user