On 08-11-2012 13:46:16 -0500, Ian Stakenvicius wrote:
> I'd expect the idea is to parse IUSE and run an individual test for
> every combination of use flags (ie, n(IUSE) factorial tests)

pfff...

combs=
for flag in $( eval $(grep '^IUSE=' libdv-1.0.0-r2.ebuild) ; echo ${IUSE} ) ; do
    flag=${flag#+}
    flag=${flag#-}
    combs+='" "{'"${flag},-${flag}"'}'
done
combs="\$'\\n'IUSE=\\\"${combs#\" \"}\\\""
eval "echo ${combs}"


IUSE="debug sdl static-libs xv" 
IUSE="debug sdl static-libs -xv" 
IUSE="debug sdl -static-libs xv" 
IUSE="debug sdl -static-libs -xv" 
IUSE="debug -sdl static-libs xv" 
IUSE="debug -sdl static-libs -xv" 
IUSE="debug -sdl -static-libs xv" 
IUSE="debug -sdl -static-libs -xv" 
IUSE="-debug sdl static-libs xv" 
IUSE="-debug sdl static-libs -xv" 
IUSE="-debug sdl -static-libs xv" 
IUSE="-debug sdl -static-libs -xv" 
IUSE="-debug -sdl static-libs xv" 
IUSE="-debug -sdl static-libs -xv" 
IUSE="-debug -sdl -static-libs xv" 
IUSE="-debug -sdl -static-libs -xv"

Fabian


-- 
Fabian Groffen
Gentoo on a different level

Attachment: signature.asc
Description: Digital signature

Reply via email to