summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2014-01-08 16:43:33 +0100
committerMartin Herkt <lachs0r@srsfckn.biz>2014-01-08 16:46:31 +0100
commitcbc344236cae2b0b8412e44300393c9d35a9c624 (patch)
tree831dbb8d0ed3cb00a92dc4072dc7110ff45965cc /wscript_build.py
parent61e5670684f751940c8567697794328c9ce815b1 (diff)
downloadmpv-cbc344236cae2b0b8412e44300393c9d35a9c624.tar.bz2
mpv-cbc344236cae2b0b8412e44300393c9d35a9c624.tar.xz
waf: do not use TaskGen for PDF build rule
No longer necessary.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py20
1 files changed, 6 insertions, 14 deletions
diff --git a/wscript_build.py b/wscript_build.py
index d7b5a3b999..5cdbd5a4f7 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -21,22 +21,14 @@ def _build_man(ctx):
_add_rst_manual_dependencies(ctx)
def _build_pdf(ctx):
- from waflib import TaskGen
-
- TaskGen.declare_chain(
- name = 'rst2pdf',
- rule = '${RST2PDF} ${RST2PDF_FLAGS} ${SRC} -o ${TGT}',
- ext_in = '.rst',
- ext_out = '.pdf',
- shell = True )
-
- ctx.env.RST2PDF_FLAGS = [
- '-c --repeat-table-rows'
- ]
+ ctx(
+ name = 'rst2pdf',
+ target = 'DOCS/man/en/mpv.pdf',
+ source = 'DOCS/man/en/mpv.rst',
+ rule = '${RST2PDF} -c --repeat-table-rows ${SRC} -o ${TGT}',
+ install_path = ctx.env.DOCDIR)
- ctx(source = 'DOCS/man/en/mpv.rst')
_add_rst_manual_dependencies(ctx)
- ctx.install_files(ctx.env.DOCDIR, ['DOCS/man/en/mpv.pdf'])
def build(ctx):
ctx.load('waf_customizations')