abuild: update symlinks before updating hardlinks
This should be a minimal performance improvement since hardlinks are replaced with symlinks and should thus already point to the correct file.
This commit is contained in:
parent
e8e0b9e90a
commit
2b8ffc9876
14
abuild.in
14
abuild.in
@ -1408,6 +1408,13 @@ default_doc() {
|
||||
|
||||
# compress man pages
|
||||
local mandir="$subpkgdir"/usr/share/man
|
||||
[ -d "$mandir" ] && find "$mandir" -type l \
|
||||
-a \( -name \*.[0-8n] -o -name \*.[0-8][a-z]* \) \
|
||||
| while read symlink; do
|
||||
|
||||
ln -s $(readlink $symlink).gz "$symlink".gz
|
||||
rm -f "$symlink"
|
||||
done
|
||||
[ -d "$mandir" ] && find "$mandir" -type f \
|
||||
-a \( -name \*.[0-8n] -o -name \*.[0-8][a-z]* \) \
|
||||
-exec stat -c "%i %n" \{\} \; | while read inode name; do
|
||||
@ -1428,13 +1435,6 @@ default_doc() {
|
||||
|
||||
[ $islink -eq 0 ] && gzip -9 "$name"
|
||||
done
|
||||
[ -d "$mandir" ] && find "$mandir" -type l \
|
||||
-a \( -name \*.[0-8n] -o -name \*.[0-8][a-z]* \) \
|
||||
| while read symlink; do
|
||||
|
||||
ln -s $(readlink $symlink).gz "$symlink".gz
|
||||
rm -f "$symlink"
|
||||
done
|
||||
|
||||
rm -f "$subpkgdir/usr/share/info/dir"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user