source: rtems-docs/posix-compliance/wscript @ 0472ead

5am
Last change on this file since 0472ead was 0472ead, checked in by Joel Sherrill <joel@…>, on Mar 9, 2018 at 8:53:36 PM

Update the POSIX Compliance Tracking Spreadsheet. Add standards.

This update adds the following:

C11 Programming Language Standard
FACE Technical Standard Edition 3.0 (four profiles)
Software Communication Architecture Specification 2.2.2 (one profile)
Software Communication Architecture Specification 4.1 (three profiles)

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