diff --git a/Rakefile b/Rakefile index 1fe462cc..a543f114 100644 --- a/Rakefile +++ b/Rakefile @@ -131,6 +131,18 @@ task :examples do 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 task :clean do sh "git", "clean", "-fdx" diff --git a/examples/compass/clean.rb b/examples/compass/clean.rb new file mode 100644 index 00000000..f82f8ab4 --- /dev/null +++ b/examples/compass/clean.rb @@ -0,0 +1,2 @@ +require 'fileutils' +FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions" \ No newline at end of file diff --git a/examples/ninesixty/clean.rb b/examples/ninesixty/clean.rb new file mode 100644 index 00000000..f82f8ab4 --- /dev/null +++ b/examples/ninesixty/clean.rb @@ -0,0 +1,2 @@ +require 'fileutils' +FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions" \ No newline at end of file diff --git a/examples/susy/clean.rb b/examples/susy/clean.rb new file mode 100644 index 00000000..f82f8ab4 --- /dev/null +++ b/examples/susy/clean.rb @@ -0,0 +1,2 @@ +require 'fileutils' +FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions" \ No newline at end of file diff --git a/examples/yui/clean.rb b/examples/yui/clean.rb new file mode 100644 index 00000000..f82f8ab4 --- /dev/null +++ b/examples/yui/clean.rb @@ -0,0 +1,2 @@ +require 'fileutils' +FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions" \ No newline at end of file