Mail archive
alpine-devel

Re: [alpine-devel] [PATCH 2/5] abuild: there is no man page section 9

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Mon, 30 Nov 2015 08:14:26 +0100

On Fri, 27 Nov 2015 00:50:44 +0100
Sören Tempel <soeren+git_at_soeren-tempel.net> wrote:

> ---
> abuild.in | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/abuild.in b/abuild.in
> index 697a186..4c45504 100644
> --- a/abuild.in
> +++ b/abuild.in
> _at_@ -591,7 +591,7 @@ postcheck() {
> warning "Found /usr/share/man but package name doesn't end with -doc"
> fi
> # check for uncompressed man pages
> - i=$(find "$dir"/usr/share/man -name '*.[0-9]' -type f | sed "s|^$dir|\t|")
> + i=$(find "$dir"/usr/share/man -name '*.[0-8]' -type f | sed "s|^$dir|\t|")
> if [ -n "$i" ]; then
> error "Found uncompressed man pages:"
> echo "$i"
> _at_@ -1405,7 +1405,7 @@ default_doc() {
> # compress man pages
> local previnode= prevname= mandir="$subpkgdir"/usr/share/man
> [ -d "$mandir" ] && find "$subpkgdir"/usr/share/man \
> - -type f \( -name \*.[0-9n] -o -name \*.[0-9][a-z]* \) \
> + -type f \( -name \*.[0-8n] -o -name \*.[0-8][a-z]* \) \
> -exec stat -c "%i %n" {} \; | sort -n \
> | while read inode name; do
>
> _at_@ -1421,7 +1421,7 @@ default_doc() {
> prevname="$name"
> done
> [ -d "$mandir" ] && find "$subpkgdir"/usr/share/man \
> - -type l \( -name \*.[0-9n] -o -name \*.[0-9][a-z]* \) \
> + -type l \( -name \*.[0-8n] -o -name \*.[0-8][a-z]* \) \
> | while read symlink; do
>
> ln -s $(readlink $symlink).gz "$symlink".gz

What problem does this fix? Does it hurt to check for [0-9] instead of
[0-8] in any way?

-nc


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Mon Nov 30 2015 - 08:14:26 UTC