summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-02-03 18:42:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-02-03 18:42:47 +0000
commitb628bb4305c6a0f8c6918d8bd2f2cf0cf1c714d0 (patch)
treef178a6d51d6eb86bea5f9a68983f8ee98673c6f6
parent2b8ffc987659df24e7306e71d15161a44f17e737 (diff)
downloadabuild-b628bb4305c6a0f8c6918d8bd2f2cf0cf1c714d0.tar.gz
abuild-b628bb4305c6a0f8c6918d8bd2f2cf0cf1c714d0.tar.bz2
abuild-b628bb4305c6a0f8c6918d8bd2f2cf0cf1c714d0.tar.xz
abuild-b628bb4305c6a0f8c6918d8bd2f2cf0cf1c714d0.zip
abuild: avoid compress man pages double
we should not compress man pages that are already compressed.
-rw-r--r--abuild.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index f328f0c..5c93da3 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1410,6 +1410,7 @@ default_doc() {
local mandir="$subpkgdir"/usr/share/man
[ -d "$mandir" ] && find "$mandir" -type l \
-a \( -name \*.[0-8n] -o -name \*.[0-8][a-z]* \) \
+ -a \! \( -name '*.gz' -o name '*.bz2' -o name '*.xz' \) \
| while read symlink; do
ln -s $(readlink $symlink).gz "$symlink".gz
@@ -1417,6 +1418,7 @@ default_doc() {
done
[ -d "$mandir" ] && find "$mandir" -type f \
-a \( -name \*.[0-8n] -o -name \*.[0-8][a-z]* \) \
+ -a \! \( -name '*.gz' -o name '*.bz2' -o name '*.xz' \) \
-exec stat -c "%i %n" \{\} \; | while read inode name; do
# Skip hardlinks removed in last iteration.