[Groonga-commit] groonga/gcs [master] Install GCS

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 21日 (木) 16:25:57 JST


Kouhei Sutou	2012-06-21 16:25:57 +0900 (Thu, 21 Jun 2012)

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

  Log:
    Install GCS

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

  Modified: packages/all-in-one/Rakefile (+20 -0)
===================================================================
--- packages/all-in-one/Rakefile    2012-06-21 16:33:12 +0900 (7c054ec)
+++ packages/all-in-one/Rakefile    2012-06-21 16:25:57 +0900 (a38cfaa)
@@ -4,6 +4,7 @@ require "uri"
 require "pathname"
 require "open-uri"
 
+top_dir = Pathname.new("../..").expand_path
 tmp_dir = Pathname.new("tmp").expand_path
 @download_dir = tmp_dir + "download"
 @build_dir = tmp_dir + "build"
@@ -125,6 +126,25 @@ namespace(:node) do
   end
 end
 
+gcs_path = @dist_dir + "bin/gcs"
+namespace(:gcs) do
+  file(gcs_path.to_s) do
+    Rake["gcs:install"].invoke
+  end
+
+  desc("Install Groonga CloudSearch")
+  task(:install => [node_path.to_s]) do
+    Dir.chdir(@dist_dir.to_s) do
+      bin_dir = @dist_dir + "bin"
+      path = ENV["PATH"]
+      sh("env", "PATH=#{bin_dir}:#{path}",
+         "bin/npm", "install", "-g", top_dir.to_s) or exit(false)
+    end
+  end
+end
+
+task(:default => gcs_path.to_s)
+
 desc("Remove all auto generated files")
 task(:clean) do
   rm_rf(tmp_dir.to_s)
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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