From: Tilman Sauerbeck Date: Mon, 28 Mar 2005 21:00:30 +0000 (+0000) Subject: Added a packagetask. X-Git-Tag: redact-0.1.0~5 X-Git-Url: http://git.code-monkey.de/?p=redact.git;a=commitdiff_plain;h=fc797389c2a50043aec902f7b5d117e9f99f4431 Added a packagetask. --- diff --git a/ChangeLog b/ChangeLog index fc06214..9d9fd9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,5 @@ -- -$Id: ChangeLog 10 2005-03-28 20:55:18Z tilman $ +$Id: ChangeLog 11 2005-03-28 21:00:30Z tilman $ ++ 2005-03-28 Tilman Sauerbeck (tilman at code-monkey de) @@ -8,6 +8,7 @@ $Id: ChangeLog 10 2005-03-28 20:55:18Z tilman $ as the extension for the test Edjes * README: Added basic documentation * Rakefile: Added an RDocTask + * Rakefile: Added a PackageTask 2005-03-26 Tilman Sauerbeck (tilman at code-monkey de) * lib/redact/app.rb: Use Tempfile's for the Embryo source- and diff --git a/Rakefile b/Rakefile index 13968f7..1e4d36c 100644 --- a/Rakefile +++ b/Rakefile @@ -1,8 +1,13 @@ -# $Id: Rakefile 10 2005-03-28 20:55:18Z tilman $ +# $Id: Rakefile 11 2005-03-28 21:00:30Z tilman $ require "rake/clean" require "rake/testtask" require "rake/rdoctask" +require "rake/packagetask" + +PKG_NAME = "redact" +PKG_VERSION = `grep VERSION lib/redact/redact.rb`. + match(/VERSION = \"(.*)\"/).captures.first CLOBBER.include(FileList["test/*.edj"]) @@ -40,3 +45,9 @@ Rake::RDocTask.new do |t| "TODO", "lib/redact/redact.rb", "lib/redact/part.rb", "lib/redact/program.rb") end + +Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |t| + t.need_tar_gz = true + t.package_files.include("[A-Z]*", "bin/redact", "lib/redact/*.rb", + "test/*.rb") +end