Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: kumba@g.o, base-system@g.o
Subject: Re: [gentoo-dev] [PATCH eutils] Introduce has_iuse() for IUSE checks.
Date: Tue, 13 Sep 2011 10:45:32
Message-Id: 20110913124654.45c044d4@pomiocik.lan
In Reply to: Re: [gentoo-dev] [PATCH eutils] Introduce has_iuse() for IUSE checks. by Joshua Kinard
1 On Tue, 13 Sep 2011 06:39:13 -0400
2 Joshua Kinard <kumba@g.o> wrote:
3
4 > On 09/13/2011 06:29, Michał Górny wrote:
5 >
6 > > On Tue, 13 Sep 2011 12:21:31 +0200
7 > > Michał Górny <mgorny@g.o> wrote:
8 > >
9 > >> +# @FUNCTION: has_iuse
10 > >
11 > > Ideas for a better name will be appreciated.
12 >
13 >
14 > 'in_iuse' or 'iuse_contains'?
15 >
16 > if $(in_iuse foobar); do
17 > $(cake)
18 > fi
19 >
20 > or
21 >
22 > if $(iuse_contains foobar); do
23 > $(cake)
24 > fi
25
26 Guess just a typo but for the record:
27
28 if in_iuse foobar; then
29 ...
30 fi
31
32 i.e. withou $().
33
34 --
35 Best regards,
36 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies