X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=Rakefile;h=03fc22e9fccc2f2ef1a68aa762cb732a0ee46c44;hb=06a31fdd0abfbcbb324a1c25611e59be6615f713;hp=a1ac76fc6a46758a7797fd9da0127770cb34d5ba;hpb=a8aaecfe2bbffba7699ff773e07bf2a884028942;p=ruby-eet.git diff --git a/Rakefile b/Rakefile index a1ac76f..03fc22e 100644 --- a/Rakefile +++ b/Rakefile @@ -1,10 +1,11 @@ -# $Id: Rakefile 8 2005-03-27 14:25:35Z tilman $ +# $Id: Rakefile 32 2005-04-19 09:07:57Z tilman $ require "rbconfig" require "rake/clean" require "rake/testtask" require "rake/rdoctask" require "rake/packagetask" +require "rake/contrib/compositepublisher" require "rake/contrib/sshpublisher" # make sure we run at least Rake 0.5.0 @@ -13,15 +14,13 @@ if (RAKEVERSION.split(".").map { |p| p.to_i } <=> [0, 5, 0]) < 0 end PKG_NAME = "ruby-eet" -PKG_VERSION = `grep VERSION lib/eet.rb`.match(/VERSION = \"(.*)\"/). - captures.first +PKG_VERSION = File.read("lib/eet.rb"). + match(/^\s*VERSION = \"(.*)\"\s$/).captures.first ext_obj = "ext/ext.o" ext_lib = "ext/eet_ext.so" -CLOBBER.include(ext_obj) -CLOBBER.include(ext_lib) -CLOBBER.include(FileList["test/*.eet"]) +CLOBBER.include(ext_obj, ext_lib, "test/*.eet") archdir = Config::CONFIG["archdir"] sitearchdir = Config::CONFIG["sitearchdir"] @@ -55,17 +54,17 @@ end task :test => [ext_lib] Rake::TestTask.new do |t| - t.libs << "ext" + t.libs = ["lib", "ext", "test"] t.test_files = FileList["test/test_*.rb"] t.verbose = true end Rake::RDocTask.new do |t| t.rdoc_dir = "doc" - t.title = "ruby-eet - EET bindings for Ruby" + t.title = "Ruby-EET - EET bindings for Ruby" t.options = ["--line-numbers", "--inline-source", "--main", "README"] t.rdoc_files.include("README", "COPYING", "AUTHORS", "ChangeLog", - "ext/ext.c", "lib/eet.rb") + "NEWS", "ext/ext.c", "lib/eet.rb") end Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |t|