summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2016-09-13 05:22:08 +0000
committerlwhsu <lwhsu@FreeBSD.org>2016-09-13 05:22:08 +0000
commit1e561bde87ea83d79d9b51cb7bd5300d5c286656 (patch)
tree08413197c027cdecf82037f520ec1577f2155771 /Makefile.inc1
parent7cdb4294a833ac14a8a59a480e6fa78d55ed4714 (diff)
downloadFreeBSD-src-1e561bde87ea83d79d9b51cb7bd5300d5c286656.zip
FreeBSD-src-1e561bde87ea83d79d9b51cb7bd5300d5c286656.tar.gz
MFC r303935
Only remove empty directories before packaging. This preserves files are intentionally empty, most of them are in tests.txz Reviewed by: bdrewery
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc12
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index e98a90e..60d2754 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -882,7 +882,7 @@ distributeworld installworld: _installcheck_world
${IMAKEENV} rm -rf ${INSTALLTMP}
.if make(distributeworld)
.for dist in ${EXTRA_DISTRIBUTIONS}
- find ${DESTDIR}/${DISTDIR}/${dist} -mindepth 1 -empty -delete
+ find ${DESTDIR}/${DISTDIR}/${dist} -mindepth 1 -type d -empty -delete
.endfor
.if defined(NO_ROOT)
.for dist in base ${EXTRA_DISTRIBUTIONS}
OpenPOWER on IntegriCloud