Added a publish task.
authorTilman Sauerbeck <tilman@code-monkey.de>
Thu, 5 Apr 2007 19:37:10 +0000 (21:37 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Thu, 5 Apr 2007 19:37:10 +0000 (21:37 +0200)
Rakefile

index f1be607..9048ee3 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -6,6 +6,8 @@ require "rake/packagetask"
 require "rake/contrib/compositepublisher"
 require "rake/contrib/sshpublisher"
 
+PKG_NAME = "ruby-edje"
+
 CLOBBER.include("src/*.{s,}o")
 
 ext_obj = Dir["src/*.c"].map { |f| f.sub(/\.[^.]+$/, ".o") }
@@ -43,3 +45,11 @@ Rake::RDocTask.new do |t|
                "src/rb_edje_main.c", "src/rb_edje.c", "src/rb_part.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