summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAmar Takhar <verm@darkbeer.org>2016-05-18 13:47:42 -0400
committerAmar Takhar <verm@darkbeer.org>2016-05-18 13:47:42 -0400
commit170418af2d8937d42efd3ee2918adc433ec3bacf (patch)
tree24f33ff27cff8ee036642e6c83597d885e44bf97 /common
parentbc37517746afcf942537f788000d79b8ed68f933 (diff)
downloadrtems-docs-170418af2d8937d42efd3ee2918adc433ec3bacf.tar.bz2
Move images to a common directory.
Diffstat (limited to 'common')
-rw-r--r--common/waf.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/common/waf.py b/common/waf.py
index ba63409..6512253 100644
--- a/common/waf.py
+++ b/common/waf.py
@@ -119,17 +119,29 @@ def doc_singlehtml(ctx, source_dir, conf_dir):
def html_resources(ctx):
- for dir in ["_static", "_templates"]:
- files = ctx.path.parent.find_node("common").ant_glob("%s/*" % dir)
- ctx.path.get_bld().make_node(dir).mkdir() # dirs
+ for dir_name in ["_static", "_templates"]:
+ files = ctx.path.parent.find_node("common").ant_glob("%s/*" % dir_name)
+ ctx.path.get_bld().make_node(dir_name).mkdir() # dirs
ctx(
features = "subst",
is_copy = True,
source = files,
- target = [ctx.bldnode.find_node(dir).get_bld().make_node(x.name) for x in files]
+ target = [ctx.bldnode.find_node(dir_name).get_bld().make_node(x.name) for x in files]
)
+ # copy images
+# ctx.path.get_bld().make_node("images").mkdir()
+# files = ctx.path.parent.ant_glob("images/**")
+# ctx(
+# features = "subst",
+# is_copy = True,
+# source = files,
+# target = [x.srcpath().replace("../", "") for x in files]
+# )
+
+
+
def cmd_build(ctx, conf_dir=".", source_dir="."):
srcnode = ctx.srcnode.abspath()