public
Description: Don't use this. It's slow and requires ruby and sake. Use this: http://gist.github.com/12718
Homepage: http://gist.github.com/12718
Clone URL: git://github.com/eventualbuddha/sake-git.git
Thu May 01 16:25:59 -0700 2008
commit  d0d745e970f0ffd5f7466969059ae379cf8590fd
tree    94be7f7d9634c032e5f627676375706d9b6bf752
parent  15879e86954d89d97eb9437f4d1f2751b6677ff1
sake-git / Rakefile
100644 11 lines (9 sloc) 0.323 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 = `rake -f #{Dir.pwd}/git.rake -T`.to_a.grep(/^rake/).map {|l| l[/^rake (\S+)/, 1]}
    `sake -u #{tasks.join(' ')} 2>/dev/null`
  end
  
  exec("sake -i #{Dir.pwd}/git.rake")
end
 
task :default => :install