From 12ee5d1ab07a843f7b08ac2449d1c3456836fbbd Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Mon, 12 Apr 2010 00:12:35 -0700 Subject: [PATCH] Don't put bootstrapped files from examples in the gem. --- Rakefile | 12 ++++++++++++ examples/compass/clean.rb | 2 ++ examples/ninesixty/clean.rb | 2 ++ examples/susy/clean.rb | 2 ++ examples/yui/clean.rb | 2 ++ 5 files changed, 20 insertions(+) create mode 100644 examples/compass/clean.rb create mode 100644 examples/ninesixty/clean.rb create mode 100644 examples/susy/clean.rb create mode 100644 examples/yui/clean.rb 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