source: rtems-source-builder/doc/wscript @ ae717cb

4.104.114.95
Last change on this file since ae717cb was 4351cf4, checked in by Chris Johns <chrisj@…>, on 04/14/13 at 03:16:55

Updated documentation.

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