Fix regex for compatibility with the regex implementation from FreeBSD's
authorZac Medico <zmedico@gentoo.org>
Wed, 4 Jun 2008 01:53:47 +0000 (01:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 4 Jun 2008 01:53:47 +0000 (01:53 -0000)
libc (used by bash on FreeBSD). Thanks to Alexis Ballier <aballier@g.o>
for the patch. (trunk r10558)

svn path=/main/branches/2.1.2/; revision=10572

bin/doman

index e074edad2b11a5c9b8348626f9e8bf2318168ca2..5b9493dd50ccb7835184ded0a51ae633c4befaa0 100755 (executable)
--- a/bin/doman
+++ b/bin/doman
@@ -33,7 +33,7 @@ for x in "$@" ; do
 
        mandir=${i18n}man${suffix:0:1}
 
-       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}"