1 |
Author: zmedico |
2 |
Date: 2008-05-28 00:37:22 +0000 (Wed, 28 May 2008) |
3 |
New Revision: 10460 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/doman |
7 |
Log: |
8 |
Convert doman to use bash's =~ operator instead of calling egrep. |
9 |
|
10 |
|
11 |
Modified: main/trunk/bin/doman |
12 |
=================================================================== |
13 |
--- main/trunk/bin/doman 2008-05-27 23:08:22 UTC (rev 10459) |
14 |
+++ main/trunk/bin/doman 2008-05-28 00:37:22 UTC (rev 10460) |
15 |
@@ -40,7 +40,7 @@ |
16 |
fi |
17 |
|
18 |
|
19 |
- if echo ${mandir} | egrep -q 'man[0-9n](|f|p|pm)$' -; then |
20 |
+ if [[ ${mandir} =~ man[0-9n](|f|p|pm)$ ]] ; then |
21 |
if [[ -s ${x} ]] ; then |
22 |
if [[ ! -d ${D}/usr/share/man/${mandir} ]] ; then |
23 |
install -d "${D}/usr/share/man/${mandir}" |
24 |
|
25 |
-- |
26 |
gentoo-commits@l.g.o mailing list |