summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2014-01-08 16:00:40 +0100
committerMartin Herkt <lachs0r@srsfckn.biz>2014-01-08 16:00:40 +0100
commitc2fe43361f876c681a6ab553705fec6d62323c22 (patch)
treeb6880bb0f1facc62ccf1b384aadbc7ef6827eba3 /wscript_build.py
parent49646f10f054863b17fcc203025fa65608b1ce94 (diff)
downloadmpv-c2fe43361f876c681a6ab553705fec6d62323c22.tar.bz2
mpv-c2fe43361f876c681a6ab553705fec6d62323c22.tar.xz
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.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py20
1 files changed, 4 insertions, 16 deletions
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')