Fixup the MLINKS replacement code.

Approved by:	bapt
This commit is contained in:
Mathieu Arnold 2013-10-01 14:11:47 +00:00
parent 35233318ca
commit 10c47e92fb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328950

View File

@ -31,10 +31,10 @@ compress-man:
done ; \
for dir in $$mdirs; do \
${FIND} $$dir -type f \! -name "*.gz" -links 1 -exec ${GZIP_CMD} {} \; ; \
${FIND} $$dir -type f \! -name "*.gz" \! -links 1 -print -exec ${STAT} -f '%i' {} \; | \
${FIND} $$dir -type f \! -name "*.gz" \! -links 1 -exec ${STAT} -f '%i' {} \; | \
${SORT} -u | while read inode ; do \
unset ref ; \
for f in $$(${FIND} -type f -inum $${inode} -print); do \
for f in $$(${FIND} $$dir -type f -inum $${inode} -print); do \
if [ -z $$ref ]; then \
ref=$${f}.gz ; \
${GZIP_CMD} $${f} ; \