summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-03 20:11:00 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-03 20:11:00 +0000
commit2646bca31e14f042c825bff30f1de204fd3f5027 (patch)
treee7bd8fcb9e9ffdef4c56e24cd51223068473bba3
parent002c39d034eaa11163563e1fa65ca2046b5a354f (diff)
downloadportage-2646bca31e14f042c825bff30f1de204fd3f5027.tar.gz
portage-2646bca31e14f042c825bff30f1de204fd3f5027.tar.bz2
portage-2646bca31e14f042c825bff30f1de204fd3f5027.zip
Fix regex for compatibility with the regex implementation from FreeBSD's
libc (used by bash on FreeBSD). Thanks to Alexis Ballier <aballier@g.o> for the patch. svn path=/main/trunk/; revision=10558
-rwxr-xr-xbin/doman2
1 files changed, 1 insertions, 1 deletions
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}"