All pastes #545700 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-06 20:52 UTC
rendered paste body
#!/usr/bin/python

import sys,os

if len(sys.argv) < 2:
    print 'usage: %s <<contexts to cook>>' % sys.argv[0]
    sys.exit(1)

contextList = sys.argv[1:]

toCook = ''

for arch in ('x86', 'x86_64'):
    # build domu, vmware, and "normal"
    for flavor in ('xen,domU,!dom0,!vmware', '!xen,!domU,!dom0,!vmware',
    '!xen,!domU,!dom0,vmware'):
        if arch == 'x86':
            mumble='kernel.pae,'
        else:
            mumble=''
        toCook += " group-dist'[%s%s is: %s]' " % (mumble,flavor,arch)

for context in contextList:
    os.system('/usr/bin/cvc cook --allow-flavor-change --context %s %s ' % (context, toCook))