diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-02-03 19:32:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-02-03 19:32:30 +0000 |
commit | eee56356ab0703bf63973be962113bf4866fac2f (patch) | |
tree | 1af4b25f87b2d30ccad4e2bf8955631624aab22f | |
parent | b628bb4305c6a0f8c6918d8bd2f2cf0cf1c714d0 (diff) | |
download | abuild-eee56356ab0703bf63973be962113bf4866fac2f.tar.gz abuild-eee56356ab0703bf63973be962113bf4866fac2f.tar.bz2 abuild-eee56356ab0703bf63973be962113bf4866fac2f.tar.xz abuild-eee56356ab0703bf63973be962113bf4866fac2f.zip |
abuild: fix finding already compressed manpages
-rw-r--r-- | abuild.in | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1410,7 +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' \) \ + -a \! \( -name '*.gz' -o -name '*.bz2' -o -name '*.xz' \) \ | while read symlink; do ln -s $(readlink $symlink).gz "$symlink".gz @@ -1418,7 +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' \) \ + -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. @@ -1427,6 +1427,7 @@ default_doc() { local islink=0 find "$mandir" -type f -links +1 \ -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 if [ "$linode" = "$inode" -a "$lname" != "$name" ]; then islink=1 |