remove wscript_build from patches/

This commit is contained in:
Frank Zhang 2010-12-04 22:35:55 -08:00
parent 0c1dbdc015
commit 44ad8d1d67
2 changed files with 17 additions and 16 deletions

View File

@ -1,15 +0,0 @@
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),
)

View File

@ -131,8 +131,24 @@ if not Options.options.PRESERVECONFIG: bld.install_files_filtered("${CPSYSCONFDI
# ================ Creation of patch.tgz's ============================
# done here because the patches require substituted files
bld.recurse(["patches"],'build')
start_path = bld.path.find_dir ("patches")
bld.substitute("*/**",name="patchsubst", cwd = start_path)
for virttech in Utils.to_list(start_path.ant_glob("*",dir=True)):
if virttech in ["shared"]: continue
patchfiles = start_path.ant_glob('shared/** %s/debian/config/**'%virttech,src=False,bld=True,dir=False,flat=True)
tmp = bld.path
bld.path = start_path
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),
)
bld.path = tmp
# ================== End creation of patch.tgz's ====================