public
Description: Don't use this. It's slow and requires ruby and sake. Use this: http://github.com/wesabe/git-tools
Homepage: http://gist.github.com/12718
Clone URL: git://github.com/eventualbuddha/sake-git.git
sake-git / Rakefile
100644 11 lines (9 sloc) 0.321 kb
1
2
3
4
5
6
7
8
9
10
11
desc "Install the sake-git tasks (use FORCE=yes to overwrite)"
task :install do
  if ENV['FORCE'] == 'yes'
    tasks = `sake -Tv #{Dir.pwd}/git.rake`.to_a.grep(/^sake/).map {|l| l[/^sake (\S+)/, 1]}
    `sake -u #{tasks.join(' ')} 2>/dev/null`
  end
  
  exec("sake -i #{Dir.pwd}/git.rake")
end
 
task :default => :install