summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorflyx <github@flyx.org>2017-01-31 10:31:48 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-01-31 10:31:48 +0100
commit6effe4553bfc8a57e6d718bfb147905393c2a943 (patch)
tree8a6f3af55e9d1714cbd056f9472a73c5c1bec3db /tools
parent51c764e048fd49647dcac15b793ff956ae93f320 (diff)
downloadNim-6effe4553bfc8a57e6d718bfb147905393c2a943.tar.gz
execute pdflatex in nonstopmode (#5305)
* Name is irritating; nonstopmode stops execution if an
   error occurs instead of asking the user for input.
Diffstat (limited to 'tools')
-rw-r--r--tools/nimweb.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/nimweb.nim b/tools/nimweb.nim
index 9a21a0fb5..2c905057e 100644
--- a/tools/nimweb.nim
+++ b/tools/nimweb.nim
@@ -322,11 +322,12 @@ proc buildPdfDoc(c: var TConfigData, destPath: string) =
   if os.execShellCmd("pdflatex -version") != 0:
     echo "pdflatex not found; no PDF documentation generated"
   else:
+    const pdflatexcmd = "pdflatex -interaction=nonstopmode "
     for d in items(c.pdf):
       exec(findNim() & " rst2tex $# $#" % [c.nimArgs, d])
       # call LaTeX twice to get cross references right:
-      exec("pdflatex " & changeFileExt(d, "tex"))
-      exec("pdflatex " & changeFileExt(d, "tex"))
+      exec(pdflatexcmd & changeFileExt(d, "tex"))
+      exec(pdflatexcmd & changeFileExt(d, "tex"))
       # delete all the crappy temporary files:
       let pdf = splitFile(d).name & ".pdf"
       let dest = destPath / pdf