#!/usr/bin/python import sys,os if len(sys.argv) < 2: print 'usage: %s <>' % 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))