diff options
| -rw-r--r-- | Rakefile | 21 | ||||
| -rw-r--r-- | wscript | 13 |
2 files changed, 13 insertions, 21 deletions
diff --git a/Rakefile b/Rakefile deleted file mode 100644 index c702a8210..000000000 --- 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 @@ -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' |
