diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-05-28 00:37:22 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-05-28 00:37:22 +0000 |
commit | cb264456ddc7c0df50f5629ffa27e7ed75112ab2 (patch) | |
tree | 7a98300b4a349ad587dd595a87d54e308fa8f929 | |
parent | 716e10013af503e82f72987a8b59f0114140a62c (diff) | |
download | portage-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-x | bin/doman | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}" |