Skip to content

Commit

Permalink
more rakefile updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoward committed Jun 9, 2009
1 parent 37e9685 commit 2c253d8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions rakefile
Expand Up @@ -84,22 +84,16 @@ task :gemspec do
end end


task :gem => [:clean, :gemspec] do task :gem => [:clean, :gemspec] do

Fu.mkdir_p This.pkgdir Fu.mkdir_p This.pkgdir

before = Dir['*.gem']
Dir['*.gem'].each{|gem| Fu.rm_f gem}

cmd = "gem build #{ This.gemspec }" cmd = "gem build #{ This.gemspec }"
`#{ cmd }` `#{ cmd }`

after = Dir['*.gem']
gem = Dir['*.gem'].first or 'abort no gem!' gem = ((after - before).first || after.first) or abort('no gem!')

Fu.mv gem, This.pkgdir Fu.mv gem, This.pkgdir

This.gem = File.basename(gem) This.gem = File.basename(gem)
end end



task :readme do task :readme do
samples = '' samples = ''
prompt = '~ > ' prompt = '~ > '
Expand Down

0 comments on commit 2c253d8

Please sign in to comment.