projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f525940
)
Convert doman to use bash's =~ operator instead of calling egrep.
author
Zac Medico
<zmedico@gentoo.org>
Wed, 28 May 2008 01:30:51 +0000
(
01:30
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 28 May 2008 01:30:51 +0000
(
01:30
-0000)
(trunk r10460)
svn path=/main/branches/2.1.2/; revision=10463
bin/doman
patch
|
blob
|
history
diff --git
a/bin/doman
b/bin/doman
index c021f0a444061201fba8312eb444c1090a510ee3..e074edad2b11a5c9b8348626f9e8bf2318168ca2 100755
(executable)
--- 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}"