From c8780d7772b891bf08002c2e1475ef580ef94441 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 28 May 2008 01:30:51 +0000 Subject: [PATCH] Convert doman to use bash's =~ operator instead of calling egrep. (trunk r10460) svn path=/main/branches/2.1.2/; revision=10463 --- bin/doman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" -- 2.26.2