#!/usr/bin/env ruby require 'reap/application' HELP = <<-END Usage: #{File.basename($0)} [options] Clean scrap products. All directory paths and or file globs listed under the clean configuration entry, can be removed via this method. By default all files ending with "~" or .bak are removed. To specifcy an alternate provide a list of files and/or globs under +remove:+ sub-entry. You can also provide an +exclude:+ sub-entry to isolate files not to be removed. For example: clean: remove [ '**/*~', '**/*.bak', '.config' ] Clean is run as a prerequiste to #release via #prepare. END if ARGV.include?('--help') puts HELP else app = Reap::Application.new app.clean end