summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool/pdftex.py
diff options
context:
space:
mode:
authorRobert Managan <managan1@llnl.gov>2009-08-21 21:31:26 (GMT)
committerRobert Managan <managan1@llnl.gov>2009-08-21 21:31:26 (GMT)
commit261ed88eaf34cfb993f1c5158b725a4dabd9fdd6 (patch)
treecc1cc8989fd5366c59055c94d4486b834e377dae /src/engine/SCons/Tool/pdftex.py
parent424e5d82767feb5b991597b1d964fcbf117baace (diff)
downloadSCons-261ed88eaf34cfb993f1c5158b725a4dabd9fdd6.zip
SCons-261ed88eaf34cfb993f1c5158b725a4dabd9fdd6.tar.gz
SCons-261ed88eaf34cfb993f1c5158b725a4dabd9fdd6.tar.bz2
As I set up the test case for the glossary and nomencl packages
I found that when only one tool (say pdftex) is initialized that some of the actions for bibtex... are not created. Moved most common actions and environment settings to one routine in tex.py that the other text tools (pdftex, pdflatex, latex) call. Also fixed a typo in the nomenclature action setup. There was a '$' that should not have been there.
Diffstat (limited to 'src/engine/SCons/Tool/pdftex.py')
-rw-r--r--src/engine/SCons/Tool/pdftex.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/engine/SCons/Tool/pdftex.py b/src/engine/SCons/Tool/pdftex.py
index b487a8d..01b7f85 100644
--- a/src/engine/SCons/Tool/pdftex.py
+++ b/src/engine/SCons/Tool/pdftex.py
@@ -1,6 +1,7 @@
"""SCons.Tool.pdftex
Tool-specific initialization for pdftex.
+Generates .pdf files from .tex files
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
@@ -91,15 +92,7 @@ def generate(env):
# so pdftex is the default for no source suffix
pdf.generate2(env)
- env['PDFTEX'] = 'pdftex'
- env['PDFTEXFLAGS'] = SCons.Util.CLVar('-interaction=nonstopmode -recorder')
- env['PDFTEXCOM'] = 'cd ${TARGET.dir} && $PDFTEX $PDFTEXFLAGS ${SOURCE.file}'
-
- # Duplicate from latex.py. If latex.py goes away, then this is still OK.
- env['PDFLATEX'] = 'pdflatex'
- env['PDFLATEXFLAGS'] = SCons.Util.CLVar('-interaction=nonstopmode -recorder')
- env['PDFLATEXCOM'] = 'cd ${TARGET.dir} && $PDFLATEX $PDFLATEXFLAGS ${SOURCE.file}'
- env['LATEXRETRIES'] = 3
+ SCons.Tool.tex.generate_common(env)
def exists(env):
return env.Detect('pdftex')