Added a publish task.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 8 Apr 2007 10:13:33 +0000 (12:13 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 8 Apr 2007 10:13:33 +0000 (12:13 +0200)
Rakefile

index 94fceda..c7252ba 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -6,6 +6,8 @@ require "rake/packagetask"
 require "rake/contrib/compositepublisher"
 require "rake/contrib/sshpublisher"
 
+PKG_NAME = "ruby-ecore"
+
 CLOBBER.include("src/*/*.{s,}o")
 
 ext_libs = %w{ecore ecore_evas ecore_job ecore_x ecore_con}.map do |lib|
@@ -65,3 +67,11 @@ Rake::RDocTask.new do |t|
                "src/ecore_evas/rb_xrender_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