Explicitly list all the files we want to distribute.
authorTilman Sauerbeck <tilman@code-monkey.de>
Fri, 23 Mar 2007 11:29:15 +0000 (12:29 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Fri, 23 Mar 2007 11:29:15 +0000 (12:29 +0100)
Also include the Rake tasks.

Rakefile

index 3ab381d3ba8638f7bb89fb2b34d7a08fe77a4d91..a1f94efc6d65c9eb9109f4f332440b39c240296a 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -17,6 +17,15 @@ end
 PKG_NAME = "ruby-eet"
 PKG_VERSION = File.read("lib/eet.rb").
               match(/^\s*VERSION = \"(.*)\"\s$/).captures.first
 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")
 
 
 CLOBBER.include("test/*.eet")
 
@@ -81,9 +90,7 @@ end
 
 Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |t|
        t.need_tar_gz = true
 
 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
 end
 
 task :publish => [:rdoc, :package] do