Commit 635cacc6eb0a425ac284184d25a26d9b0a672fc6

Scott Chacon 2010-12-08T10:10:48

fix doxygen setup and automate generation rakefile for some common tasks and doxygen needs to look in the new place for headers

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