From c2fe43361f876c681a6ab553705fec6d62323c22 Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Wed, 8 Jan 2014 16:00:40 +0100 Subject: Switch PDF manual generation to rst2pdf This finally gets rid of the LaTeX dependency. We should actually be using docultils directly here, but I didn't do this because of all the potential Python 2/3 breakage. --- wscript_build.py | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'wscript_build.py') diff --git a/wscript_build.py b/wscript_build.py index 8b7ca79995..d7b5a3b999 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -24,26 +24,14 @@ def _build_pdf(ctx): from waflib import TaskGen TaskGen.declare_chain( - name = 'rst2latex', - rule = '${RST2LATEX} ${RST2LATEX_FLAGS} ${SRC} ${TGT}', + name = 'rst2pdf', + rule = '${RST2PDF} ${RST2PDF_FLAGS} ${SRC} -o ${TGT}', ext_in = '.rst', - ext_out = '.tex' ) - - TaskGen.declare_chain( - name = 'pdflatex', - rule = '${PDFLATEX} ${PDFLATEX_FLAGS} ${SRC}; ' * 2, - ext_in = '.tex', ext_out = '.pdf', shell = True ) - ctx.env.RST2LATEX_FLAGS = [ - '--config=' + ctx.srcnode.abspath() + '/DOCS/man/docutils.conf' - ] - - ctx.env.PDFLATEX_FLAGS = [ - '--interaction=batchmode', - '--output-directory=DOCS/man/en/', - '--jobname=mpv' + ctx.env.RST2PDF_FLAGS = [ + '-c --repeat-table-rows' ] ctx(source = 'DOCS/man/en/mpv.rst') -- cgit v1.2.3