Don't put bootstrapped files from examples in the gem.

This commit is contained in:
Chris Eppstein 2010-04-12 00:12:35 -07:00
parent 5e680ad27b
commit 12ee5d1ab0
5 changed files with 20 additions and 0 deletions

View File

@ -131,6 +131,18 @@ task :examples do
end end
end end
namespace :examples do
desc "clean up the example directories"
task :clean do
puts "Cleaning Examples"
Dir.glob('examples/*/clean.rb').each do |cleaner|
load cleaner
end
end
end
task "gemspec:generate" => "examples:clean"
namespace :git do namespace :git do
task :clean do task :clean do
sh "git", "clean", "-fdx" sh "git", "clean", "-fdx"

View File

@ -0,0 +1,2 @@
require 'fileutils'
FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions"

View File

@ -0,0 +1,2 @@
require 'fileutils'
FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions"

2
examples/susy/clean.rb Normal file
View File

@ -0,0 +1,2 @@
require 'fileutils'
FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions"

2
examples/yui/clean.rb Normal file
View File

@ -0,0 +1,2 @@
require 'fileutils'
FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions"