mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
16 lines
546 B
Plaintext
16 lines
546 B
Plaintext
import os, Utils, glob, re
|
|
|
|
bld.substitute("*/**",name="patchsubst")
|
|
|
|
for virttech in Utils.to_list(bld.path.ant_glob("*",dir=True)):
|
|
if virttech in ["shared","wscript_build"]: continue
|
|
patchfiles = bld.path.ant_glob('shared/** %s/debian/config/**'%virttech,src=False,bld=True,dir=False,flat=True)
|
|
tgen = bld(
|
|
features = 'tar',#Utils.tar_up,
|
|
source = patchfiles,
|
|
target = 'cloud-scripts.tgz',
|
|
name = 'cloud-scripts_tgz',
|
|
root = os.path.join("patches", virttech + "/debian/config"),
|
|
rename = lambda x: re.sub(".subst$","",x),
|
|
)
|