doman: ${mandir} can't contain complete suffix so don't check for it.
authorMichał Górny <gentoo@mgorny.alt.pl>
Mon, 27 Sep 2010 18:24:45 +0000 (20:24 +0200)
committerZac Medico <zmedico@gentoo.org>
Tue, 5 Oct 2010 15:50:37 +0000 (08:50 -0700)
We're appending only a single character of manfile suffix to ${mandir},
so we don't need to expect having anything more in there.

bin/ebuild-helpers/doman

index 1862f83e1d51f37160372603d503a36ce8d776c4..11333be4f03a00e8dd52f0d55bd09d76a58a45d8 100755 (executable)
@@ -42,7 +42,7 @@ for x in "$@" ; do
        fi
 
 
-       if [[ ${mandir} =~ man[0-9n](f|p|pm)?$ ]] ; then
+       if [[ ${mandir} == *man[0-9n] ]] ; then
                if [[ -s ${x} ]] ; then
                        if [[ ! -d ${D}/usr/share/man/${mandir} ]] ; then
                                install -d "${D}/usr/share/man/${mandir}"