abuild: avoid compress man pages double
we should not compress man pages that are already compressed.
This commit is contained in:
parent
2b8ffc9876
commit
b628bb4305
|
@ -1410,6 +1410,7 @@ default_doc() {
|
||||||
local mandir="$subpkgdir"/usr/share/man
|
local mandir="$subpkgdir"/usr/share/man
|
||||||
[ -d "$mandir" ] && find "$mandir" -type l \
|
[ -d "$mandir" ] && find "$mandir" -type l \
|
||||||
-a \( -name \*.[0-8n] -o -name \*.[0-8][a-z]* \) \
|
-a \( -name \*.[0-8n] -o -name \*.[0-8][a-z]* \) \
|
||||||
|
-a \! \( -name '*.gz' -o name '*.bz2' -o name '*.xz' \) \
|
||||||
| while read symlink; do
|
| while read symlink; do
|
||||||
|
|
||||||
ln -s $(readlink $symlink).gz "$symlink".gz
|
ln -s $(readlink $symlink).gz "$symlink".gz
|
||||||
|
@ -1417,6 +1418,7 @@ default_doc() {
|
||||||
done
|
done
|
||||||
[ -d "$mandir" ] && find "$mandir" -type f \
|
[ -d "$mandir" ] && find "$mandir" -type f \
|
||||||
-a \( -name \*.[0-8n] -o -name \*.[0-8][a-z]* \) \
|
-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
|
-exec stat -c "%i %n" \{\} \; | while read inode name; do
|
||||||
|
|
||||||
# Skip hardlinks removed in last iteration.
|
# Skip hardlinks removed in last iteration.
|
||||||
|
|
Loading…
Reference in New Issue