projects
/
redact.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a packagetask.
[redact.git]
/
Rakefile
diff --git
a/Rakefile
b/Rakefile
index 13968f721d3846af936790da774502235ceb50d4..1e4d36cede14c8b58fde641955c13ee931170067 100644
(file)
--- a/
Rakefile
+++ b/
Rakefile
@@
-1,8
+1,13
@@
-# $Id: Rakefile 1
0 2005-03-28 20:55:18
Z tilman $
+# $Id: Rakefile 1
1 2005-03-28 21:00:30
Z tilman $
require "rake/clean"
require "rake/testtask"
require "rake/rdoctask"
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"])
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
"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