--
-$Id: ChangeLog 3 2005-03-26 19:59:05Z tilman $
+$Id: ChangeLog 4 2005-03-27 01:14:48Z tilman $
++
+2005-03-27 Tilman Sauerbeck (tilman at code-monkey de)
+ * Rakefile: Added a publish task that uploads the current
+ tarball and the RDoc documentation to code-monkey.de
+
2005-03-26 Tilman Sauerbeck (tilman at code-monkey de)
* README, Rakefile: Require Rake 0.5.0 or greater
* Rakefile: Added a PackageTask
-# $Id: Rakefile 1 2005-03-26 01:45:38Z tilman $
+# $Id: Rakefile 4 2005-03-27 01:14:48Z tilman $
require "rbconfig"
require "rake/clean"
require "rake/testtask"
require "rake/rdoctask"
require "rake/packagetask"
+require "rake/contrib/sshpublisher"
# make sure we run at least Rake 0.5.0
if (RAKEVERSION.split(".").map { |p| p.to_i } <=> [0, 5, 0]) < 0
fail("Rake 0.5.0 or greater required")
end
+PKG_NAME = "ruby-eet"
+PKG_VERSION = `grep VERSION lib/eet.rb`.match(/VERSION = \"(.*)\"/).
+ captures.first
+
ext_obj = "ext/ext.o"
ext_lib = "ext/eet_ext.so"
"ext/ext.c", "lib/eet.rb")
end
-Rake::PackageTask.new("ruby-eet") do |t|
- md = `grep VERSION lib/eet.rb`.match(/VERSION = \"(.*)\"/)
- t.version = md.captures.first
+Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |t|
t.need_tar_gz = true
t.package_files.include("[A-Z]*", "ext/*.c", "lib/*.rb", "test/*.rb")
end
+
+task :publish => [:rdoc, :package] do
+ p = Rake::CompositePublisher.new
+ p.add(Rake::SshFreshDirPublisher.new("code-monkey.de",
+ "public_html/docs/" +
+ PKG_NAME, "doc"))
+ p.add(Rake::SshFilePublisher.new("code-monkey.de",
+ ".", "pkg",
+ "#{PKG_NAME}-#{PKG_VERSION}.tar.gz"))
+ p.upload
+end