Fixup the MLINKS replacement code.
Approved by: bapt
This commit is contained in:
parent
35233318ca
commit
10c47e92fb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328950
1 changed files with 2 additions and 2 deletions
|
@ -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} ; \
|
||||
|
|
Loading…
Reference in a new issue