Fix regex for compatibility with the regex implementation from FreeBSD's
authorZac Medico <zmedico@gentoo.org>
Tue, 3 Jun 2008 20:11:00 +0000 (20:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 3 Jun 2008 20:11:00 +0000 (20:11 -0000)
libc (used by bash on FreeBSD). Thanks to Alexis Ballier <aballier@g.o>
for the patch.

svn path=/main/trunk/; revision=10558

bin/doman

index 249768218652108f1d7eb09773ae1545dc3501a0..c8d34ee5ee4fa4f26c559b946cffb1f8f17ce810 100755 (executable)
--- a/bin/doman
+++ b/bin/doman
@@ -41,7 +41,7 @@ for x in "$@" ; do
        fi
 
 
-       if [[ ${mandir} =~ man[0-9n](|f|p|pm)$ ]] ; then
+       if [[ ${mandir} =~ man[0-9n](f|p|pm)?$ ]] ; then
                if [[ -s ${x} ]] ; then
                        if [[ ! -d ${D}/usr/share/man/${mandir} ]] ; then
                                install -d "${D}/usr/share/man/${mandir}"