5
Last change
on this file since ecf82d1 was
ecf82d1,
checked in by Chris Johns <chrisj@…>, on 01/11/17 at 04:50:59
|
html: Add support for an HTML cover page for releases.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | # |
---|
2 | # RTEMS Project Documentation |
---|
3 | # |
---|
4 | |
---|
5 | from sys import path |
---|
6 | from os.path import abspath |
---|
7 | path.append(abspath('common')) |
---|
8 | |
---|
9 | import waflib |
---|
10 | import waf as docs_waf |
---|
11 | |
---|
12 | version = '4.11 (4.11.2)' |
---|
13 | |
---|
14 | build_all = ['user', |
---|
15 | 'rsb', |
---|
16 | 'c-user', |
---|
17 | 'bsp-howto', |
---|
18 | 'posix-users', |
---|
19 | 'filesystem', |
---|
20 | 'networking', |
---|
21 | 'shell', |
---|
22 | 'cpu-supplement', |
---|
23 | 'develenv', |
---|
24 | 'eclipse'] |
---|
25 | |
---|
26 | building = build_all |
---|
27 | |
---|
28 | def options(opt): |
---|
29 | docs_waf.cmd_options(opt) |
---|
30 | |
---|
31 | def configure(conf): |
---|
32 | for b in building: |
---|
33 | conf.recurse(b) |
---|
34 | conf.env['BUILD_FROM_TOP'] = 'yes' |
---|
35 | |
---|
36 | def catalogue(ctx): |
---|
37 | docs_waf.xml_catalogue(ctx, building, version) |
---|
38 | |
---|
39 | def build(ctx): |
---|
40 | for b in building: |
---|
41 | ctx.recurse(b) |
---|
42 | |
---|
43 | # |
---|
44 | # Build the catalogue and install with the coverpage and static content. |
---|
45 | # |
---|
46 | ctx(rule = catalogue, |
---|
47 | target = 'catalogue.xml', |
---|
48 | source = ['wscript', 'common/waf.py']) |
---|
49 | ctx.install_files('${PREFIX}', 'catalogue.xml') |
---|
50 | ctx.install_files('${PREFIX}', 'common/html-coverpage/index.html') |
---|
51 | static_dir = ctx.path.find_dir('common/html-coverpage/static') |
---|
52 | ctx.install_files('${PREFIX}/static', |
---|
53 | static_dir.ant_glob('**'), |
---|
54 | cwd = static_dir, |
---|
55 | relative_trick = True) |
---|
56 | |
---|
57 | def install(ctx): |
---|
58 | for b in building: |
---|
59 | ctx.recurse(b) |
---|
Note: See
TracBrowser
for help on using the repository browser.