5
Last change
on this file since b252753 was
b252753,
checked in by Chris Johns <chrisj@…>, on 10/13/17 at 14:37:40
|
posix-compliance: Reference the generated content via the include file.
- Move the copyright to the top of the generated file.
- Add a glossary and references section.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[5daabd2] | 1 | from sys import path |
---|
| 2 | from os.path import abspath |
---|
| 3 | path.append(abspath('../common/')) |
---|
| 4 | |
---|
[ad5d632] | 5 | from waf import cmd_configure as configure |
---|
[2804294] | 6 | from waf import cmd_build as doc_build |
---|
[ad5d632] | 7 | from waf import cmd_options as options |
---|
| 8 | from waf import spell |
---|
| 9 | from waf import cmd_spell |
---|
| 10 | from waf import linkcheck |
---|
| 11 | from waf import cmd_linkcheck |
---|
[2804294] | 12 | |
---|
| 13 | import posix_rst |
---|
| 14 | |
---|
| 15 | def 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: |
---|
[b252753] | 20 | s += ['.. comment SPDX-License-Identifier: CC-BY-SA-4.0', |
---|
| 21 | '', |
---|
[2804294] | 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 | |
---|
| 29 | def build(ctx): |
---|
| 30 | ctx(rule = gen_posix_rst, |
---|
| 31 | source = ['posix_rst.py', 'RTEMS-Standards-Compliance-v1.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.