From 3be669be3255c6b47dd2542af9d2055a7d1207e3 Mon Sep 17 00:00:00 2001 From: Dien Tran Date: Sat, 2 May 2020 16:49:08 -0500 Subject: Move generated tex file to doc to correct location (#14191) --- tools/kochdocs.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/kochdocs.nim b/tools/kochdocs.nim index ba60a3749..4f2062d92 100644 --- a/tools/kochdocs.nim +++ b/tools/kochdocs.nim @@ -271,6 +271,9 @@ proc buildPdfDoc*(nimArgs, destPath: string) = const pdflatexcmd = "pdflatex -interaction=nonstopmode " for d in items(pdf): exec(findNim().quoteShell() & " rst2tex $# $#" % [nimArgs, d]) + let tex = splitFile(d).name & ".tex" + removeFile("doc" / tex) + moveFile(tex, "doc" / tex) # call LaTeX twice to get cross references right: exec(pdflatexcmd & changeFileExt(d, "tex")) exec(pdflatexcmd & changeFileExt(d, "tex")) -- cgit 1.4.1-2-gfad0