diff options
| author | Vicent Marti <tanoku@gmail.com> | 2010-12-09 23:06:02 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2010-12-10 04:38:15 +0200 |
| commit | 9de351b2581f41ee049326ddbfb7deddd3710561 (patch) | |
| tree | 1a7694695dd92de308566a54cccccd07650781bf /wscript | |
| parent | 635cacc6eb0a425ac284184d25a26d9b0a672fc6 (diff) | |
| download | libgit2-9de351b2581f41ee049326ddbfb7deddd3710561.tar.gz | |
Move documentation generation to the Waf system
The new command is './waf doxygen'
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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' |
