1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

make sure to clean out old .bundle and .so files when building a gem so that they don't muck up the build

This commit is contained in:
Charles Lowell 2010-05-08 12:21:40 -05:00
parent 551b048cf1
commit 36f7ed45c9

View file

@ -23,12 +23,12 @@ Gem::Specification.new do |gemspec|
end
desc "Build gem"
task :gem do
task :gem => :gemspec do
Gem::Builder.new($gemspec).build
end
desc "build the gemspec"
task :gemspec do
task :gemspec => :clean do
File.open("#{$gemspec.name}.gemspec", "w") do |f|
f.write($gemspec.to_ruby)
end
@ -38,6 +38,7 @@ task :clean do
sh "rm -f ext/v8/Makefile"
sh "rm -rf pkg"
sh "rm -rf *.gem"
sh "rm -rf lib/v8/*.bundle lib/v8/*.so"
end
namespace :clean do