diff options
author | Chris Johns <chrisj@rtems.org> | 2022-08-12 16:03:25 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2022-08-12 16:03:46 +1000 |
commit | 10e8dcc0e6465224903d9a457de871fcd0e9ce21 (patch) | |
tree | ceb824582e1eaff2b27ced93428904b20f5084d8 /common/waf.py | |
parent | user/arm/beagle: Fix image path after section change (diff) | |
download | rtems-docs-10e8dcc0e6465224903d9a457de871fcd0e9ce21.tar.bz2 |
pdf: Set TEXINPUTS to the tex source path
Diffstat (limited to 'common/waf.py')
-rw-r--r-- | common/waf.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/waf.py b/common/waf.py index fa9aecb..8584f88 100644 --- a/common/waf.py +++ b/common/waf.py @@ -340,12 +340,15 @@ def doc_pdf(ctx, source_dir, conf_dir, sources): target = ctx.path.find_or_declare("%s/%s.tex" % (buildtype, ctx.path.name)) ) + env_latex = ctx.env.derive() + env_latex.TEXINPUTS = output_dir + ':' ctx( features = 'tex', cwd = output_dir, type = ctx.env.LATEX_CMD, source = "%s/%s.tex" % (buildtype, ctx.path.name), - prompt = 0 + prompt = 0, + env = env_latex ) ctx.install_files('${PREFIX}', '%s/%s.pdf' % (buildtype, ctx.path.name), |