svn commit: r329325 - head/Mk

Baptiste Daroussin bapt at FreeBSD.org
Fri Oct 4 15:31:36 UTC 2013


Author: bapt
Date: Fri Oct  4 15:31:35 2013
New Revision: 329325
URL: http://svnweb.freebsd.org/changeset/ports/329325

Log:
  Fix check-orphans with no MTREE_FILE

Modified:
  head/Mk/bsd.stage.mk

Modified: head/Mk/bsd.stage.mk
==============================================================================
--- head/Mk/bsd.stage.mk	Fri Oct  4 15:30:43 2013	(r329324)
+++ head/Mk/bsd.stage.mk	Fri Oct  4 15:31:35 2013	(r329325)
@@ -119,10 +119,14 @@ check-orphans: stage
 		*) ${ECHO_CMD} $$cwd/$$line ;; \
 		esac ; \
 	done < ${TMPPLIST} > ${WRKDIR}/.expanded-plist
+.if !empty(MTREE_FILE)
 	@{ ${ECHO_CMD} "#mtree"; ${CAT} ${MTREE_FILE}; } | ${TAR} tf - | \
 		awk '{ sub(/^\.$$/, "", $$1); \
 		if ($$1 == "") print "${PREFIX}"; else print "${PREFIX}/"$$1; }' \
 		> ${WRKDIR}/.mtree
+.else
+	@: > ${WRKDIR}/.mtree
+.endif
 	@a=${PREFIX}; \
 		while :; do \
 			a=$${a%/*} ; \


More information about the svn-ports-all mailing list