1 |
On 08-11-2012 19:41:41 +0100, Fabian Groffen wrote: |
2 |
> On 08-11-2012 19:18:10 +0100, Jeroen Roovers wrote: |
3 |
> > For a while I've been thinking that it would be sweet to feed all |
4 |
> > variants (enabled/disabled) of several USE flags to a script to automate |
5 |
> > testing with different USE flag combinations. |
6 |
> > |
7 |
> > USE=" x y" |
8 |
> > USE="-x y" |
9 |
> > USE=" x -y" |
10 |
> > USE="-x -y" |
11 |
> > |
12 |
> > This should be so simple to script but I can't figure out how to do it. |
13 |
> > Anyone have any ideas or a ready example script? |
14 |
> |
15 |
> % echo {x,-x}" "{y,-y} |
16 |
> x y x -y -x y -x -y |
17 |
> |
18 |
> Is that what you need? |
19 |
|
20 |
Just in case... |
21 |
|
22 |
$ echo $'\n'"USE=\""{x,-x}" "{y,-y}\""" |
23 |
|
24 |
USE="x y" |
25 |
USE="x -y" |
26 |
USE="-x y" |
27 |
USE="-x -y" |
28 |
|
29 |
Fabian |
30 |
|
31 |
|
32 |
-- |
33 |
Fabian Groffen |
34 |
Gentoo on a different level |