mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 15:07:41 +00:00
Move documentation generation to the Waf system
The new command is './waf doxygen' Signed-off-by: Vicent Marti <tanoku@gmail.com>
This commit is contained in:
parent
635cacc6eb
commit
9de351b258
21
Rakefile
21
Rakefile
@ -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
|
13
wscript
13
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'
|
||||
|
Loading…
Reference in New Issue
Block a user