Skip to content

Commit

Permalink
clean:rbc now cleans ALL rbcs
Browse files Browse the repository at this point in the history
  • Loading branch information
zenspider committed Jan 18, 2008
1 parent 1553ac8 commit c784994
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Rakefile
Expand Up @@ -420,17 +420,16 @@ end

namespace :clean do

desc "Remove all compile system ruby files (runtime/)"
desc "Remove all compile system ruby files"
task :rbc do
AllPreCompiled.each do |f|
rm_f f, :verbose => $verbose
end
files_to_delete = []
files_to_delete += Dir["*.rbc"] + Dir["**/*.rbc"]
files_to_delete += ["runtime/platform.conf"]
files_to_delete -= ["runtime/stable/loader.rbc"] # never ever delete this

(Dir["lib/compiler/*.rbc"] + Dir["lib/compiler/**/*.rbc"]).each do |f|
files_to_delete.each do |f|
rm_f f, :verbose => $verbose
end

rm_f "runtime/platform.conf"
end

desc "Cleans all compiled extension files (lib/ext)"
Expand Down

0 comments on commit c784994

Please sign in to comment.