From c5897626b9720e8fc7a76e0df1fd9cffb066415e Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Fri, 9 Jun 2006 03:40:04 +0000 Subject: [PATCH] When deleting empty directories prior to building the release tarballs, pass the "-empty" flag to find(1). This change has no effect other than to get rid of a few pages of "rmdir: ...: Directory not empty" error messages. (Note that the "-empty" flag has been supported by find(1) since 4.3-RELEASE.) --- release/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/Makefile b/release/Makefile index de5359b8e6d7..ed976fee7cf3 100644 --- a/release/Makefile +++ b/release/Makefile @@ -650,7 +650,7 @@ release.5: # Remove all the directories we don't need. -cd ${RD}/trees && \ (find ${OTHER_DISTS} -path '*/var/empty' | xargs chflags noschg; \ - find ${OTHER_DISTS} -depth -type d -print | xargs rmdir) + find ${OTHER_DISTS} -depth -type d -empty -print | xargs rmdir) touch ${.TARGET} #