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

4.104.114.95
Last change on this file since e45a2e4 was eef48f9, checked in by Chris Johns <chrisj@…>, on 02/24/13 at 09:09:15

Make the doco more visiable.

A user asked for the documentation to be move higher in the
source tree so it is easier to find.

  • Property mode set to 100644
File size: 731 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
14import waflib.TaskGen
15waflib.TaskGen.declare_chain(name      = 'html',
16                             rule      = '${ASCIIDOC} ${ASCIIDOC_FLAGS} -o ${TGT} ${SRC}',
17                             shell     = False,
18                             ext_in    = '.txt',
19                             ext_out   = '.html',
20                             reentrant = False)
Note: See TracBrowser for help on using the repository browser.