aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2006-11-14 18:08:12 +0000
committerAvatar Mike Kelly <pioto@pioto.org> 2006-11-14 18:08:12 +0000
commitfe70c11f8a2f85a607216c8686d178417b2a3a99 (patch)
treeae8f03e7040365b0150dd55657909fc8a82bd4ee
parent3871c795c41acadea702d1c1dc52856e79eac087 (diff)
downloadpaludis-fe70c11f8a2f85a607216c8686d178417b2a3a99.tar.gz
paludis-fe70c11f8a2f85a607216c8686d178417b2a3a99.tar.xz
Fix doman to work properly with >=bash-3.2.
-rw-r--r--ebuild/utils/doman3
1 files changed, 2 insertions, 1 deletions
diff --git a/ebuild/utils/doman b/ebuild/utils/doman
index db13a18..3a24689 100644
--- a/ebuild/utils/doman
+++ b/ebuild/utils/doman
@@ -59,8 +59,9 @@ for x in "$@"; do
fi
mandir="${i18n}man${suffix:0:1}"
+ match='man[0-9n](|f|p|pm)$'
- if [[ ${mandir} =~ 'man[0-9n](|f|p|pm)$' ]]; then
+ if [[ ${mandir} =~ ${match} ]]; then
if [[ -s ${x} ]]; then
if [[ ! -d "${D}${BASE}/man/${mandir}" ]]; then
install -d "${D}${BASE}/man/${mandir}"