4.104.114.95
Rev | Line | |
---|
[d7a023a] | 1 | # |
---|
| 2 | # Waf build script to build the Source Builder Documentation. |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | version = "1.0.0" |
---|
| 6 | |
---|
| 7 | def configure(ctx): |
---|
| 8 | ctx.env.ASCIIDOC = ctx.find_program(['asciidoc.py'], mandatory = True) |
---|
[5ba5405] | 9 | ctx.env.ASCIIDOC_FLAGS = ['-b', 'html5', '-a', 'data-uri', '-a', 'icons', '-a', 'max-width=55em-a'] |
---|
[d7a023a] | 10 | |
---|
| 11 | def build(ctx): |
---|
| 12 | ctx(target = 'source-builder.html', source = 'source-builder.txt') |
---|
[4351cf4] | 13 | ctx.add_manual_dependency(ctx.path.find_node('source-builder.txt'), |
---|
| 14 | ctx.path.find_node('host-results.csv')) |
---|
[d7a023a] | 15 | |
---|
| 16 | import waflib.TaskGen |
---|
| 17 | waflib.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.