|
|
@ -407,7 +407,7 @@ def main(targets, keep_intermediates, substitutions):
|
|
|
|
target_defs = yaml.load(targ_file.read())
|
|
|
|
target_defs = yaml.load(targ_file.read())
|
|
|
|
|
|
|
|
|
|
|
|
if targets == ["all"]:
|
|
|
|
if targets == ["all"]:
|
|
|
|
targets = target_defs["targets"].keys() + ["howtos"]
|
|
|
|
targets = target_defs["targets"].keys()
|
|
|
|
|
|
|
|
|
|
|
|
log("Building spec [target=%s]" % targets)
|
|
|
|
log("Building spec [target=%s]" % targets)
|
|
|
|
|
|
|
|
|
|
|
@ -415,9 +415,6 @@ def main(targets, keep_intermediates, substitutions):
|
|
|
|
for target_name in targets:
|
|
|
|
for target_name in targets:
|
|
|
|
templated_file = "tmp/templated_%s.rst" % (target_name,)
|
|
|
|
templated_file = "tmp/templated_%s.rst" % (target_name,)
|
|
|
|
|
|
|
|
|
|
|
|
if target_name == "howtos":
|
|
|
|
|
|
|
|
shutil.copy("../supporting-docs/howtos/client-server.rst", templated_file)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
target = get_build_target(target_defs, target_name)
|
|
|
|
target = get_build_target(target_defs, target_name)
|
|
|
|
build_spec(target=target, out_filename=templated_file)
|
|
|
|
build_spec(target=target, out_filename=templated_file)
|
|
|
|
templated_files.append(templated_file)
|
|
|
|
templated_files.append(templated_file)
|
|
|
@ -458,7 +455,7 @@ def main(targets, keep_intermediates, substitutions):
|
|
|
|
def list_targets():
|
|
|
|
def list_targets():
|
|
|
|
with open("../specification/targets.yaml", "r") as targ_file:
|
|
|
|
with open("../specification/targets.yaml", "r") as targ_file:
|
|
|
|
target_defs = yaml.load(targ_file.read())
|
|
|
|
target_defs = yaml.load(targ_file.read())
|
|
|
|
targets = target_defs["targets"].keys() + ["howtos"]
|
|
|
|
targets = target_defs["targets"].keys()
|
|
|
|
print "\n".join(targets)
|
|
|
|
print "\n".join(targets)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|