source: rtems-tools/doc/wscript @ 4585798

4.104.115
Last change on this file since 4585798 was f91e023, checked in by Chris Johns <chrisj@…>, on 02/17/14 at 07:04:46

Add the documentation.

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