PKG_NAME = "ruby-eet"
PKG_VERSION = File.read("lib/eet.rb").
match(/^\s*VERSION = \"(.*)\"\s$/).captures.first
+PKG_FILES = FileList[
+ "AUTHORS", "COPYING", "ChangeLog", "NEWS", "README", "Rakefile",
+ "rake/configuretask.rb", "rake/extensiontask.rb",
+ "ext/ext.c", "lib/eet.rb",
+ "test/common.rb", "test/test_array_sub.rb", "test/test_basic.rb",
+ "test/test_broken_classes.rb", "test/test_chunk.rb",
+ "test/test_hash.rb", "test/test_list.rb", "test/test_misc.rb",
+ "test/test_stream.rb", "test/test_sub.rb"
+]
CLOBBER.include("test/*.eet")
Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |t|
t.need_tar_gz = true
- t.package_files.include("AUTHORS", "ChangeLog", "COPYING", "NEWS",
- "README", "Rakefile",
- "ext/*.c", "lib/*.rb", "test/*.rb")
+ t.package_files = PKG_FILES
end
task :publish => [:rdoc, :package] do