From eaa2807952d6c9ede79389c03e495ad4f328ba71 Mon Sep 17 00:00:00 2001 From: jilles Date: Sat, 22 Jun 2013 17:28:57 +0000 Subject: [PATCH] MFC r251443: release: Allow empty extra distributions. For example, WITHOUT_SHAREDOCS= in src.conf creates an empty doc distribution. Submitted by: Kurt Lidl Tested by: Kurt Lidl git-svn-id: svn://svn.freebsd.org/base/stable/9@252098 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- Makefile.inc1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 252a11d80..0b9013abf 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -754,7 +754,7 @@ distributeworld installworld: installcheck installcheck_UGID ${IMAKEENV} rm -rf ${INSTALLTMP} .if make(distributeworld) .for dist in ${EXTRA_DISTRIBUTIONS} - find ${DESTDIR}/${DISTDIR}/${dist} -empty -delete + find ${DESTDIR}/${DISTDIR}/${dist} -mindepth 1 -empty -delete .endfor .if defined(NO_ROOT) .for dist in base ${EXTRA_DISTRIBUTIONS} -- 2.45.0