source: rtems-docs/posix-compliance/wscript @ dfe0ec0

5
Last change on this file since dfe0ec0 was 927b004, checked in by Joel Sherrill <joel@…>, on 03/21/20 at 18:04:08

posix-compliance: Add some missing methods

  • Property mode set to 100644
File size: 1.0 KB
Line 
1from common.waf import cmd_configure as configure
2from common.waf import cmd_build as doc_build
3from common.waf import cmd_options as options
4from common.waf import spell
5from common.waf import cmd_spell
6from common.waf import linkcheck
7from common.waf import cmd_linkcheck
8
9import posix_rst
10
11def gen_posix_rst(task):
12    c = posix_rst.compliance()
13    c.load(task.inputs[1].abspath())
14    s = ['']
15    for standard in posix_rst.standards:
16        s += ['.. comment SPDX-License-Identifier: CC-BY-SA-4.0',
17              '',
18              posix_rst.standard_names[standard],
19              '*' * len(posix_rst.standard_names[standard]),
20               ''] + c.output(standard)
21    with open(task.outputs[0].abspath(), 'w') as w:
22        from os import linesep
23        w.write(linesep.join(s))
24
25def build(ctx):
26    ctx(rule = gen_posix_rst,
27        source = ['posix_rst.py', 'RTEMS-Standards-Compliance-v8.csv'],
28        target = 'generated-posix-compliance.rst')
29    sources = { 'extra' : ['generated-posix-compliance.rst'] }
30    doc_build(ctx, sources = sources)
Note: See TracBrowser for help on using the repository browser.