From: Zac Medico Date: Wed, 4 Jun 2008 01:53:47 +0000 (-0000) Subject: Fix regex for compatibility with the regex implementation from FreeBSD's X-Git-Tag: v2.1.5.4~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c16fcdc085d5d653b68bafcde487882451cb8a0;p=portage.git Fix regex for compatibility with the regex implementation from FreeBSD's libc (used by bash on FreeBSD). Thanks to Alexis Ballier for the patch. (trunk r10558) svn path=/main/branches/2.1.2/; revision=10572 --- diff --git a/bin/doman b/bin/doman index e074edad2..5b9493dd5 100755 --- 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}"