summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-12-09 23:06:02 +0200
committerVicent Marti <tanoku@gmail.com>2010-12-10 04:38:15 +0200
commit9de351b2581f41ee049326ddbfb7deddd3710561 (patch)
tree1a7694695dd92de308566a54cccccd07650781bf /wscript
parent635cacc6eb0a425ac284184d25a26d9b0a672fc6 (diff)
downloadlibgit2-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--wscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/wscript b/wscript
index 6e0c8e645..97aae8450 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'