summaryrefslogtreecommitdiffstats
path: root/book/wscript
diff options
context:
space:
mode:
authorAmar Takhar <amar@rtems.org>2016-01-15 23:41:06 -0500
committerAmar Takhar <verm@darkbeer.org>2016-05-02 20:51:07 -0400
commit5daabd23cfd13662e74ce8d069204882eb1fbad9 (patch)
treef4146d003923a3de5cf5071b76721b7883123364 /book/wscript
downloadrtems-docs-5daabd23cfd13662e74ce8d069204882eb1fbad9.tar.bz2
Initial reST documentation using Sphinx.
Diffstat (limited to '')
-rw-r--r--book/wscript59
1 files changed, 59 insertions, 0 deletions
diff --git a/book/wscript b/book/wscript
new file mode 100644
index 0000000..5c297a3
--- /dev/null
+++ b/book/wscript
@@ -0,0 +1,59 @@
+from sys import path
+from os.path import abspath
+path.append(abspath('../common/'))
+
+from waf import cmd_configure, cmd_build
+
+def configure(ctx):
+ cmd_configure(ctx)
+
+def build(ctx):
+
+ dirs = [
+ "user",
+ "rtemsconfig",
+ "shell",
+ "commands",
+ "ada_user",
+ "bsp_howto",
+ "c_user",
+ "cpu_supplement",
+ "develenv",
+ "filesystem",
+ "networking",
+ "new_chapters",
+ "porting",
+ "posix1003_1",
+ "posix_users",
+ "relnotes"
+ ]
+
+ for dir in dirs:
+ files = ctx.path.parent.find_node(dir).ant_glob("**/*.rst")
+ files = [x for x in files if x.name.find("/build/") == -1]
+ ctx.path.get_bld().make_node(dir).mkdir() # dirs
+
+ ctx(
+ features = "subst",
+ is_copy = True,
+ source = files,
+ target = [x.abspath().replace(ctx.srcnode.parent.abspath(), "") for x in files]
+ )
+
+
+ ctx(
+ features = "subst",
+ is_copy = True,
+ source = ctx.srcnode.find_node("index_book.rst"),
+ target = ["index.rst"]
+ )
+
+
+ sub = {
+ "VERSION": "1.0",
+ "RELEASE": "5.0.0",
+ "DOC": "Manual",
+ "FILE_DOC": "rtemsmanual",
+ }
+
+ cmd_build(ctx, sub, source_dir="build")