Sha256: d8d90d6a68586405f2534f29190170cd87664c41d228e5a8c7d6298df72369fa

Contents?: true

Size: 1004 Bytes

Versions: 50

Compression:

Stored size: 1004 Bytes

Contents

# The 'rake/clean' file defines two file lists (CLEAN and CLOBBER) and
# two rake tasks (:clean and :clobber).
#
# [:clean] Clean up the project by deleting scratch files and backup
#          files.  Add files to the CLEAN file list to have the :clean
#          target handle them.
#
# [:clobber] Clobber all generated and non-source files in a project.
#            The task depends on :clean, so all the clean files will
#            be deleted as well as files in the CLOBBER file list.
#            The intent of this task is to return a project to its
#            pristine, just unpacked state.

require 'rake'

CLEAN = Rake::FileList["**/*~", "**/*.bak", "**/core"]
CLEAN.clear_exclude.exclude { |fn|
  fn.pathmap("%f") == 'core' && File.directory?(fn)
}

desc "Remove any temporary products."
task :clean do
  CLEAN.each { |fn| rm_r fn rescue nil }
end

CLOBBER = Rake::FileList.new

desc "Remove any generated file."
task :clobber => [:clean] do
  CLOBBER.each { |fn| rm_r fn rescue nil }
end

Version data entries

50 entries across 37 versions & 5 rubygems

Version Path
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/rake-0.9.2/lib/rake/clean.rb