Commit 2b8ffc98 authored by Sören Tempel's avatar Sören Tempel Committed by Natanael Copa

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.
parent e8e0b9e9
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment