Move documentation generation to the Waf system The new command is './waf doxygen' Signed-off-by: Vicent Marti <tanoku@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
diff --git a/Rakefile b/Rakefile
deleted file mode 100644
index c702a82..0000000
--- a/Rakefile
+++ /dev/null
@@ -1,21 +0,0 @@
-desc "Build and Run Tests"
-task :build do
- `./waf clean`
- `./waf clean-tests`
- `./waf configure`
- `./waf build`
- `./waf test`
-end
-
-desc "Build docs"
-task :docs do
- puts "Generating Doxygen docs"
- `doxygen api.doxygen`
- `git stash`
- `git checkout gh-pages`
- `cp -Rf apidocs/html/* .`
- `git add .`
- `git commit -am 'generated docs'`
- `git push origin gh-pages`
- `git checkout master`
-end
diff --git a/wscript b/wscript
index 6e0c8e6..97aae84 100644
--- a/wscript
+++ b/wscript
@@ -181,6 +181,19 @@ def test(bld):
from waflib import Options
Options.commands = ['build-tests', 'run-tests'] + Options.commands
+class _build_doc(Context):
+ cmd = 'doxygen'
+ fun = 'build_docs'
+
+def build_docs(ctx):
+ ctx.exec_command("doxygen api.doxygen")
+ ctx.exec_command("git stash")
+ ctx.exec_command("git checkout gh-pages")
+ ctx.exec_command("cp -Rf apidocs/html/* .")
+ ctx.exec_command("git add .")
+ ctx.exec_command("git commit -am 'generated docs'")
+ ctx.exec_command("git push origin gh-pages")
+ ctx.exec_command("git checkout master")
class _run_tests(Context):
cmd = 'run-tests'