Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (23 sloc) 0.573 kb
task :compile do
`rm -f libgit`
`gcc -lgit2 -o libgit libgit.c`
exec "./libgit"
end
task :doc do
`rocco --language=C --comment-chars="//" libgit.c`
`mv libgit.html index.html`
exec "open index.html"
end
task :publish do
ENV['GIT_INDEX_FILE'] = '/tmp/i'
osha = `git hash-object -w index.html`
`git add -f index.html`
tsha = `git write-tree`
csha = `echo 'generated site' | git commit-tree #{tsha}`
puts "created commit #{csha}"
`git update-ref refs/heads/gh-pages #{csha}`
`git push -f origin gh-pages`
end
task :clean do
`rm -f libgit`
end
Jump to Line
Something went wrong with that request. Please try again.