diff options
author | Chris Johns <chrisj@rtems.org> | 2012-11-05 18:04:16 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-11-05 18:04:16 +1100 |
commit | d7a023a4c1efeca119716e0672d072bc5c3a892d (patch) | |
tree | 7bb5637d41a32c35734ea103c00b215c02f10ba9 /doc/wscript | |
parent | Remove the autotools. You need them to pass check. (diff) | |
download | rtems-source-builder-d7a023a4c1efeca119716e0672d072bc5c3a892d.tar.bz2 |
Add documentation.
Diffstat (limited to 'doc/wscript')
-rw-r--r-- | doc/wscript | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/wscript b/doc/wscript new file mode 100644 index 0000000..9685ebf --- /dev/null +++ b/doc/wscript @@ -0,0 +1,20 @@ +# +# Waf build script to build the Source Builder Documentation. +# + +version = "1.0.0" + +def configure(ctx): + ctx.env.ASCIIDOC = ctx.find_program(['asciidoc.py'], mandatory = True) + ctx.env.ASCIIDOC_FLAGS = ['-b', 'html', '-a', 'data-uri', '-a', 'icons', '-a', 'max-width=55em-a'] + +def build(ctx): + ctx(target = 'source-builder.html', source = 'source-builder.txt') + +import waflib.TaskGen +waflib.TaskGen.declare_chain(name = 'html', + rule = '${ASCIIDOC} ${ASCIIDOC_FLAGS} -o ${TGT} ${SRC}', + shell = False, + ext_in = '.txt', + ext_out = '.html', + reentrant = False) |