[rtems-docs commit] waf: Fix building the images in the src path.

Chris Johns chrisj at rtems.org
Thu Feb 28 22:58:26 UTC 2019


Module:    rtems-docs
Branch:    master
Commit:    440703911014e7dbeb7b086e7a18c735cbc283d1
Changeset: http://git.rtems.org/rtems-docs/commit/?id=440703911014e7dbeb7b086e7a18c735cbc283d1

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Feb 20 09:16:19 2019 +1100

waf: Fix building the images in the src path.

---

 common/waf.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/common/waf.py b/common/waf.py
index f859be7..d3bfbbf 100644
--- a/common/waf.py
+++ b/common/waf.py
@@ -394,7 +394,7 @@ def images_plantuml(ctx, source_dir, conf_dir, ext):
         return r
 
     for src in ctx.path.ant_glob('**/*' + ext):
-        tgt = src.abspath()[: - len(ext)] + '.png'
+        tgt = src.change_ext('.png')
         ctx(
             rule         = run,
             inliner      = ctx.env.BIN_PUML,
@@ -403,7 +403,6 @@ def images_plantuml(ctx, source_dir, conf_dir, ext):
             install_path = None
         )
 
-
 def cmd_build(ctx, extra_source = []):
     conf_dir = ctx.path.get_src()
     source_dir = ctx.path.get_src()



More information about the vc mailing list