Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] new `usex` helper
Date: Tue, 13 Sep 2011 22:14:12
Message-Id: 201109131813.10435.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] new `usex` helper by Alec Warner
On Tuesday, September 13, 2011 18:01:25 Alec Warner wrote:
> On Tue, Sep 13, 2011 at 2:56 PM, Mike Frysinger wrote: > > this is so i can do: > > export some_var=$(usex some_flag) > > and get it set to "yes" or "no" > > If the intent is to use it for logic: > > export some_var=$(usex some_flag) > > if [[ $some_var == yes ]]; then > # buttsex > fi
that is not the intent
> Then I recommend making true / false the default and then doing > > if $some_var; then > # buttsex > fi
the point is to use it to construct vars that get passed to scripts like econf or programs like emake ac_cv_some_header=$(usex foo) \ econf ... emake USE_POOP=$(usex poo) -mike

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] new `usex` helper Brian Harring <ferringb@×××××.com>