fix doxygen setup and automate generation rakefile for some common tasks and doxygen needs to look in the new place for headers
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
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..c702a82
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,21 @@
+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/api.doxygen b/api.doxygen
index 4d25aed..d37814a 100644
--- a/api.doxygen
+++ b/api.doxygen
@@ -1,6 +1,6 @@
PROJECT_NAME = libgit2
-INPUT = src/git
+INPUT = src/git2
QUIET = YES
RECURSIVE = YES
FILE_PATTERNS = *.h