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:42:29
Message-Id: 20121108184141.GQ83592@gentoo.org
In Reply to: [gentoo-dev] A script/binary that iterates over arguments and spits out different variants? by Jeroen Roovers
1 On 08-11-2012 19:18:10 +0100, Jeroen Roovers wrote:
2 > For a while I've been thinking that it would be sweet to feed all
3 > variants (enabled/disabled) of several USE flags to a script to automate
4 > testing with different USE flag combinations.
5 >
6 > USE=" x y"
7 > USE="-x y"
8 > USE=" x -y"
9 > USE="-x -y"
10 >
11 > This should be so simple to script but I can't figure out how to do it.
12 > Anyone have any ideas or a ready example script?
13
14 % echo {x,-x}" "{y,-y}
15 x y x -y -x y -x -y
16
17 Is that what you need?
18
19
20 --
21 Fabian Groffen
22 Gentoo on a different level

Attachments

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

Replies