Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2013 23:25:20 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r315339 - head/security/vuxml
Message-ID:  <201303262325.r2QNPKlX055569@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Tue Mar 26 23:25:19 2013
New Revision: 315339
URL: http://svnweb.freebsd.org/changeset/ports/315339

Log:
  In validate target, use unexpand and sed to make sure that we are using
  consistent space style.
  
  Reviewed by:	stas, simon

Modified:
  head/security/vuxml/Makefile

Modified: head/security/vuxml/Makefile
==============================================================================
--- head/security/vuxml/Makefile	Tue Mar 26 23:22:42 2013	(r315338)
+++ head/security/vuxml/Makefile	Tue Mar 26 23:25:19 2013	(r315339)
@@ -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 ]; \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303262325.r2QNPKlX055569>