1 |
On Tuesday, September 13, 2011 18:01:25 Alec Warner wrote: |
2 |
> On Tue, Sep 13, 2011 at 2:56 PM, Mike Frysinger wrote: |
3 |
> > this is so i can do: |
4 |
> > export some_var=$(usex some_flag) |
5 |
> > and get it set to "yes" or "no" |
6 |
> |
7 |
> If the intent is to use it for logic: |
8 |
> |
9 |
> export some_var=$(usex some_flag) |
10 |
> |
11 |
> if [[ $some_var == yes ]]; then |
12 |
> # buttsex |
13 |
> fi |
14 |
|
15 |
that is not the intent |
16 |
|
17 |
> Then I recommend making true / false the default and then doing |
18 |
> |
19 |
> if $some_var; then |
20 |
> # buttsex |
21 |
> fi |
22 |
|
23 |
the point is to use it to construct vars that get passed to scripts like econf |
24 |
or programs like emake |
25 |
|
26 |
ac_cv_some_header=$(usex foo) \ |
27 |
econf ... |
28 |
|
29 |
emake USE_POOP=$(usex poo) |
30 |
-mike |