Skip to content
Browse files

add checkout task

  • Loading branch information...
1 parent 489f8f5 commit d6555b2bfcab6c4120ef5bf6a779f81fa7b4e4a1 @stereobooster stereobooster committed Jun 22, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 Rakefile
View
12 Rakefile
@@ -14,6 +14,12 @@ Rake::ExtensionTask.new('rugged') do |r|
r.lib_dir = 'lib/rugged'
end
+desc "checkout libgit2 source"
+task :checkout do
+ sh "git submodule update --init"
+end
+Rake::Task[:compile].prerequisites.insert(0, :checkout)

TODO

Rake::Task[:compile].prerequisites.unshift :checkout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+
task :embedded_clean do
lib_path = File.expand_path '../ext/rugged/libgit2_embed.a', __FILE__
system "rm #{lib_path}"
@@ -44,9 +50,9 @@ end
begin
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.rdoc_files.include('ext/**/*.c')
- rdoc.rdoc_files.include('lib/**/*.rb')
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.rdoc_files.include('ext/**/*.c')
+ rdoc.rdoc_files.include('lib/**/*.rb')
end
rescue LoadError
end

0 comments on commit d6555b2

Please sign in to comment.
Something went wrong with that request. Please try again.