[rtems-docs commit] pdf: Set TEXINPUTS to the tex source path
Chris Johns
chrisj at rtems.org
Fri Aug 12 05:57:15 UTC 2022
Module: rtems-docs
Branch: master
Commit: 10e8dcc0e6465224903d9a457de871fcd0e9ce21
Changeset: http://git.rtems.org/rtems-docs/commit/?id=10e8dcc0e6465224903d9a457de871fcd0e9ce21
Author: Chris Johns <chrisj at rtems.org>
Date: Fri Aug 12 16:03:25 2022 +1000
pdf: Set TEXINPUTS to the tex source path
---
common/waf.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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),
More information about the vc
mailing list