source: rtems-source-builder/doc/wscript @ 7164e61

4.104.95
Last change on this file since 7164e61 was e249bd1, checked in by Chris Johns <chrisj@…>, on 05/14/14 at 06:38:50

doc: Use the internal asciidoc tool.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#
2# Waf build script to build the Source Builder Documentation.
3#
4
5import os.path
6
7version = "1.0.0"
8
9asciidoc = os.path.join(os.getcwd(),
10                        '..', 'source-builder', 'sb', 'asciidoc')
11
12def configure(ctx):
13    ctx.env.ASCIIDOC = ctx.find_program(['asciidoc.py'],
14                                        path_list = [asciidoc],
15                                        mandatory = True)
16    ctx.env.ASCIIDOC_FLAGS = ['-b', 'html5', '-a', 'data-uri',
17                              '-a', 'icons', '-a', 'max-width=55em-a']
18
19def build(ctx):
20    ctx(target = 'source-builder.html', source = 'source-builder.txt')
21    ctx.add_manual_dependency(ctx.path.find_node('source-builder.txt'),
22                              ctx.path.find_node('host-results.csv'))
23
24import waflib.TaskGen
25waflib.TaskGen.declare_chain(name      = 'html',
26                             rule      = '${ASCIIDOC} ${ASCIIDOC_FLAGS} -o ${TGT} ${SRC}',
27                             shell     = False,
28                             ext_in    = '.txt',
29                             ext_out   = '.html',
30                             reentrant = False)
Note: See TracBrowser for help on using the repository browser.