summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-11-27 00:47:07 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2016-02-03 18:21:02 +0000
commit2b8ffc987659df24e7306e71d15161a44f17e737 (patch)
tree9ecd3de3ac5de8dfe9daff3950ca96a35d1fe1b9 /abuild.in
parente8e0b9e90a9934dae27f1aea438a48b0abf9d2dd (diff)
downloadabuild-2b8ffc987659df24e7306e71d15161a44f17e737.tar.gz
abuild-2b8ffc987659df24e7306e71d15161a44f17e737.tar.bz2
abuild-2b8ffc987659df24e7306e71d15161a44f17e737.tar.xz
abuild-2b8ffc987659df24e7306e71d15161a44f17e737.zip
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.
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/abuild.in b/abuild.in
index da84a83..f328f0c 100644
--- a/abuild.in
+++ b/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"