Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Oct 2013 15:31:35 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r329325 - head/Mk
Message-ID:  <201310041531.r94FVZEk049521@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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%/*} ; \



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