summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-28 01:30:51 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-28 01:30:51 +0000
commitc8780d7772b891bf08002c2e1475ef580ef94441 (patch)
tree330a6ed3bad50733097ae9cc90b4599d5f7b6173 /bin
parentf52594006b7eaff362c15dfa193a6511c5e23ccb (diff)
downloadportage-c8780d7772b891bf08002c2e1475ef580ef94441.tar.gz
portage-c8780d7772b891bf08002c2e1475ef580ef94441.tar.bz2
portage-c8780d7772b891bf08002c2e1475ef580ef94441.zip
Convert doman to use bash's =~ operator instead of calling egrep.
(trunk r10460) svn path=/main/branches/2.1.2/; revision=10463
Diffstat (limited to 'bin')
-rwxr-xr-xbin/doman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/doman b/bin/doman
index c021f0a44..e074edad2 100755
--- a/bin/doman
+++ b/bin/doman
@@ -33,7 +33,7 @@ for x in "$@" ; do
mandir=${i18n}man${suffix:0:1}
- 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}"