diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-10-04 15:33:10 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-10-04 15:33:10 +0000 |
commit | 658fd28e6f97b298b2d008da872c7cd788866f4b (patch) | |
tree | 9316c4fd708ab507040d97618c12f32f875d8f1f /Mk | |
parent | Fix check-orphans with no MTREE_FILE (diff) |
Fix makeplist with no MTREE_FILE
Notes
Notes:
svn path=/head/; revision=329326
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.stage.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.stage.mk b/Mk/bsd.stage.mk index 7b8222c5381f..0e562a8a8598 100644 --- a/Mk/bsd.stage.mk +++ b/Mk/bsd.stage.mk @@ -72,10 +72,14 @@ add-plist-info: .if !target(makeplist) makeplist: stage +.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%/*} ; \ |