From: Zac Medico Date: Tue, 3 Jun 2008 20:11:00 +0000 (-0000) Subject: Fix regex for compatibility with the regex implementation from FreeBSD's X-Git-Tag: v2.2_pre8~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2646bca31e14f042c825bff30f1de204fd3f5027;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. svn path=/main/trunk/; revision=10558 --- diff --git a/bin/doman b/bin/doman index 249768218..c8d34ee5e 100755 --- 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}"