[Groonga-commit] groonga/gcs [master] Implement publish task to publish package

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 4日 (水) 23:42:53 JST


Yoji SHIDARA	2012-07-04 23:42:53 +0900 (Wed, 04 Jul 2012)

  New Revision: e6c99985bfb8ecb7cf3a02e3c15180b4df9c7ded
  https://github.com/groonga/gcs/commit/e6c99985bfb8ecb7cf3a02e3c15180b4df9c7ded

  Log:
    Implement publish task to publish package

  Modified files:
    packages/all-in-one/Rakefile

  Modified: packages/all-in-one/Rakefile (+16 -0)
===================================================================
--- packages/all-in-one/Rakefile    2012-07-04 23:04:00 +0900 (806720b)
+++ packages/all-in-one/Rakefile    2012-07-04 23:42:53 +0900 (202c3b0)
@@ -15,6 +15,7 @@ tmp_dir = base_dir + "tmp"
 @download_dir = tmp_dir + "download"
 @build_dir = tmp_dir + "build"
 @dist_dir = tmp_dir + "dist"
+rsync_path = "packa****@packa*****:public"
 
 directory @download_dir.to_s
 directory @build_dir.to_s
@@ -39,6 +40,15 @@ def detect_shared_object_extension
   end
 end
 
+def detect_distribution_directory_name
+  case RUBY_PLATFORM
+  when /darwin/
+    "macosx"
+  else
+    raise "direcotry for #{RUBY_PLATFORM} is not defined"
+  end
+end
+
 make = ENV["MAKE"] || detect_make
 shared_object_extension = detect_shared_object_extension
 
@@ -251,3 +261,9 @@ desc("Remove all auto generated files")
 task(:clean) do
   rm_rf(tmp_dir.to_s)
 end
+
+desc("publish the latest package to #{rsync_path}")
+task(:publish) do
+  destination_path = rsync_path + "/#{detect_distribution_directory_name}/gcs/"
+  sh('rsync', '-avz', gcs_package_tar_gz_path.to_s, destination_path)
+end
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



Groonga-commit メーリングリストの案内
Back to archive index