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:
parent
551b048cf1
commit
36f7ed45c9
1 changed files with 3 additions and 2 deletions
5
Rakefile
5
Rakefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue