summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-28 00:37:22 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-28 00:37:22 +0000
commitcb264456ddc7c0df50f5629ffa27e7ed75112ab2 (patch)
tree7a98300b4a349ad587dd595a87d54e308fa8f929
parent716e10013af503e82f72987a8b59f0114140a62c (diff)
downloadportage-cb264456ddc7c0df50f5629ffa27e7ed75112ab2.tar.gz
portage-cb264456ddc7c0df50f5629ffa27e7ed75112ab2.tar.bz2
portage-cb264456ddc7c0df50f5629ffa27e7ed75112ab2.zip
Convert doman to use bash's =~ operator instead of calling egrep.
svn path=/main/trunk/; revision=10460
-rwxr-xr-xbin/doman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/doman b/bin/doman
index 9af326666..61040469f 100755
--- a/bin/doman
+++ b/bin/doman
@@ -40,7 +40,7 @@ for x in "$@" ; do
fi
- if echo ${mandir} | egrep -q '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}"