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.)
This commit is contained in:
parent
5feebeeb53
commit
c5897626b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159449
@ -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}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user