Commit eee56356 authored by Natanael Copa's avatar Natanael Copa

abuild: fix finding already compressed manpages

parent b628bb43
...@@ -1410,7 +1410,7 @@ default_doc() { ...@@ -1410,7 +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' \) \ -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
...@@ -1418,7 +1418,7 @@ default_doc() { ...@@ -1418,7 +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' \) \ -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.
...@@ -1427,6 +1427,7 @@ default_doc() { ...@@ -1427,6 +1427,7 @@ default_doc() {
local islink=0 local islink=0
find "$mandir" -type f -links +1 \ find "$mandir" -type f -links +1 \
-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 linode lname; do -exec stat -c "%i %n" \{\} \; | while read linode lname; do
if [ "$linode" = "$inode" -a "$lname" != "$name" ]; then if [ "$linode" = "$inode" -a "$lname" != "$name" ]; then
islink=1 islink=1
......
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