Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r10463 - main/branches/2.1.2/bin
Date: Wed, 28 May 2008 01:30:54
Message-Id: E1K1AV9-0000Hw-Ri@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-05-28 01:30:51 +0000 (Wed, 28 May 2008)
3 New Revision: 10463
4
5 Modified:
6 main/branches/2.1.2/bin/doman
7 Log:
8 Convert doman to use bash's =~ operator instead of calling egrep.
9 (trunk r10460)
10
11
12 Modified: main/branches/2.1.2/bin/doman
13 ===================================================================
14 --- main/branches/2.1.2/bin/doman 2008-05-28 01:27:56 UTC (rev 10462)
15 +++ main/branches/2.1.2/bin/doman 2008-05-28 01:30:51 UTC (rev 10463)
16 @@ -33,7 +33,7 @@
17
18 mandir=${i18n}man${suffix:0:1}
19
20 - if echo ${mandir} | egrep -q 'man[0-9n](|f|p|pm)$' -; then
21 + if [[ ${mandir} =~ man[0-9n](|f|p|pm)$ ]] ; then
22 if [[ -s ${x} ]] ; then
23 if [[ ! -d ${D}/usr/share/man/${mandir} ]] ; then
24 install -d "${D}/usr/share/man/${mandir}"
25
26 --
27 gentoo-commits@l.g.o mailing list