From d17833b8d07df54c50878a9fb7c246ccd3034d6c Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Mon, 3 Jul 2006 15:28:13 +0000 Subject: [PATCH] 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 --- lib/configure.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/configure.py b/lib/configure.py index 084a921527..cf4ee79588 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -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: -- 2.39.2