MFC r303935

Only remove empty directories before packaging.

This preserves files are intentionally empty, most of them are in tests.txz

Reviewed by:	bdrewery
This commit is contained in:
lwhsu 2016-09-13 05:22:08 +00:00
parent 7cdb4294a8
commit 1e561bde87

View File

@ -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}