aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-10-04 23:31:35 +0800
committerbapt <bapt@FreeBSD.org>2013-10-04 23:31:35 +0800
commite19ca870115a5f5d8bba4bcd55db8f887cf4e4c2 (patch)
treee8419ea3e02928135583a4a5190b0d26d69b6a5f /Mk
parent25de506c806e4710c1d849fb9879e7b984d1ba6e (diff)
downloadfreebsd-ports-gnome-e19ca870115a5f5d8bba4bcd55db8f887cf4e4c2.tar.gz
freebsd-ports-gnome-e19ca870115a5f5d8bba4bcd55db8f887cf4e4c2.tar.zst
freebsd-ports-gnome-e19ca870115a5f5d8bba4bcd55db8f887cf4e4c2.zip
Fix check-orphans with no MTREE_FILE
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.stage.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.stage.mk b/Mk/bsd.stage.mk
index 5dfebc70403f..7b8222c5381f 100644
--- a/Mk/bsd.stage.mk
+++ b/Mk/bsd.stage.mk
@@ -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%/*} ; \