summaryrefslogtreecommitdiffstats
path: root/test/TEX/PDFLATEX.py
diff options
context:
space:
mode:
authorRobert Managan <managan1@llnl.gov>2008-09-04 18:05:49 (GMT)
committerRobert Managan <managan1@llnl.gov>2008-09-04 18:05:49 (GMT)
commit6a4d9df86030463c35d40e1a314721eb546fb84e (patch)
tree5fcab134f7685c3c589cd2b701d811b6cbc12131 /test/TEX/PDFLATEX.py
parent43528ea6633d5d0d2005de38298b45d631642436 (diff)
downloadSCons-6a4d9df86030463c35d40e1a314721eb546fb84e.zip
SCons-6a4d9df86030463c35d40e1a314721eb546fb84e.tar.gz
SCons-6a4d9df86030463c35d40e1a314721eb546fb84e.tar.bz2
Added a strfunction to the various tex builders. Since the sub-actions report
their commands as they build the strfunction only returns a string for GetOption("no_exec") which covers --dry-run. Therefore --dry-run now gets output, the first command to be run plus " ..." to indicate that the ral builder may repeat or run bibtex, makeindex,... Also updating the flags to pass -interaction=nonstopmode This prevents errors in the .tex files from stopping the build while Latex asks for input. Updated several tests to handle this new flag by switching to getopt module
Diffstat (limited to 'test/TEX/PDFLATEX.py')
-rw-r--r--test/TEX/PDFLATEX.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/TEX/PDFLATEX.py b/test/TEX/PDFLATEX.py
index e1cf00e..11ada7b 100644
--- a/test/TEX/PDFLATEX.py
+++ b/test/TEX/PDFLATEX.py
@@ -45,8 +45,10 @@ test = TestSCons.TestSCons()
test.write('mypdflatex.py', r"""
import sys
import os
-base_name = os.path.splitext(sys.argv[1])[0]
-infile = open(sys.argv[1], 'rb')
+import getopt
+cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:', [])
+base_name = os.path.splitext(arg[0])[0]
+infile = open(arg[0], 'rb')
pdf_file = open(base_name+'.pdf', 'wb')
aux_file = open(base_name+'.aux', 'wb')
log_file = open(base_name+'.log', 'wb')