5
Line | |
---|
1 | # |
---|
2 | # Waf build script to build the Source Builder Documentation. |
---|
3 | # |
---|
4 | |
---|
5 | import os |
---|
6 | import os.path |
---|
7 | |
---|
8 | version = "1.0.0" |
---|
9 | |
---|
10 | def 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 | |
---|
17 | def build(ctx): |
---|
18 | ctx(target = 'rtems-tester.html', source = 'rtems-tester.txt') |
---|
19 | |
---|
20 | import waflib.TaskGen |
---|
21 | waflib.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.