Gentoo Archives: gentoo-dev

From: Fabian Groffen <grobian@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] A script/binary that iterates over arguments and spits out different variants?
Date: Thu, 08 Nov 2012 18:47:56
Message-Id: 20121108184651.GR83592@gentoo.org
In Reply to: Re: [gentoo-dev] A script/binary that iterates over arguments and spits out different variants? by Fabian Groffen
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

Attachments

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