From: Tilman Sauerbeck Date: Sun, 8 Apr 2007 12:07:59 +0000 (+0200) Subject: Added a publish task. X-Git-Url: http://git.code-monkey.de/?p=ruby-esmart.git;a=commitdiff_plain;h=65173ea839f44bceae1ed434a5c94e61be56f891 Added a publish task. --- diff --git a/Rakefile b/Rakefile index fced7b3..b0948ee 100644 --- a/Rakefile +++ b/Rakefile @@ -6,6 +6,8 @@ require "rake/packagetask" require "rake/contrib/compositepublisher" require "rake/contrib/sshpublisher" +PKG_NAME = "ruby-esmart" + CLOBBER.include("src/**/*.{s,}o") ext_libs = ["container", "draggies", "trans_x11", "file_dialog"].map do |lib| @@ -52,3 +54,12 @@ Rake::RDocTask.new do |t| "src/esmart_trans_x11/rb_esmart_trans_x11.c" ] end + +task :publish => [:rdoc] do + p = Rake::CompositePublisher.new + p.add(Rake::SshFreshDirPublisher.new("code-monkey.de", + "public_docs/" + + PKG_NAME, "doc")) + p.upload +end +