lib/configure.py: use \nonstopmode instead of -interaction=nonstopmode, from JMarc and Enrico

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14316 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2006-07-03 15:28:13 +00:00
parent 62d3cebb29
commit d17833b8d0

View File

@ -93,13 +93,12 @@ def checkTeXPaths():
inpname = cmdOutput('cygpath -m ' + tmpfname)
wtmpfname = cmdOutput('cygpath -m ' + wtmpfname)
os.write(fd, r'''
\documentstyle{article}
\begin{document}\end{document}
\relax
''')
os.close(fd)
os.write(wfd, r'\input{' + inpname.replace('~', '\\string~') + '}' )
os.write(wfd, r'\nonstopmode\input{' + inpname.replace('~', '\\string~') + '}' )
os.close(wfd)
if cmdOutput('latex -interaction=nonstopmode ' + wtmpfname).find('Error') != -1:
if cmdOutput('latex ' + wtmpfname).find('Error') != -1:
print "configure: TeX engine needs posix-style paths in latex files"
windows_style_tex_paths = 'false'
else:
@ -641,11 +640,8 @@ def checkTeXAllowSpaces():
tex_allows_spaces = 'false'
if lyx_check_config:
print "Checking whether TeX allows spaces in file names... ",
writeToFile('a b.tex', r'\message{working^^J}' )
# FIXME: the bsh version uses < /dev/null which is not portable.
# Can anyone confirm if this option (-interaction) is available
# at other flavor of latex as well? (MikTex/win, Web2C/linux are fine.)
if ''.join(cmdOutput(LATEX + ' -interaction=nonstopmode "a b"')).find('working') != -1:
writeToFile('a b.tex', r'\nonstopmode\message{working^^J}' )
if ''.join(cmdOutput(LATEX + ' "a b"')).find('working') != -1:
print 'yes'
tex_allows_spaces = 'true'
else: