Convert doman to use bash's =~ operator instead of calling egrep.
authorZac Medico <zmedico@gentoo.org>
Wed, 28 May 2008 00:37:22 +0000 (00:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 28 May 2008 00:37:22 +0000 (00:37 -0000)
svn path=/main/trunk/; revision=10460

bin/doman

index 9af326666ec2031ce60a81927ec4786a354447a1..61040469f1e8992b5bbb0e15c95b0fbc3fe703e4 100755 (executable)
--- 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}"