[Groonga-commit] groonga/gcs [master] all-in-one: work "rake gcs-VERSION.tar.gz"

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Oct 22 12:43:23 JST 2012


Kouhei Sutou	2012-10-22 12:43:23 +0900 (Mon, 22 Oct 2012)

  New Revision: 39497096b2d0ad97dccc5a8b8bd4cbd5020a8ac3
  https://github.com/groonga/gcs/commit/39497096b2d0ad97dccc5a8b8bd4cbd5020a8ac3

  Log:
    all-in-one: work "rake gcs-VERSION.tar.gz"

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

  Modified: packages/all-in-one/Rakefile (+8 -10)
===================================================================
--- packages/all-in-one/Rakefile    2012-10-22 12:39:30 +0900 (1215735)
+++ packages/all-in-one/Rakefile    2012-10-22 12:43:23 +0900 (f96c8aa)
@@ -269,21 +269,16 @@ executables_to_wrap = []
 gcs_package_json = read_package_json(top_dir)
 executables_to_wrap += gcs_package_json['bin'].keys
 
+gcs_console_package_json = read_package_json(gcs_console_dir)
+executables_to_wrap += gcs_console_package_json["bin"].keys
+
+
 gcs_version = gcs_package_json["version"]
 gcs_package_basename = "gcs-#{gcs_version}"
 gcs_package_tar_gz = "#{gcs_package_basename}.tar.gz"
 gcs_package_path = tmp_dir + gcs_package_basename
 gcs_package_tar_gz_path = base_dir + gcs_package_tar_gz
-file(gcs_package_tar_gz_path.to_s) do
-  Rake::Task["package"]
-end
-
-
-gcs_console_package_json = read_package_json(gcs_console_dir)
-executables_to_wrap += gcs_console_package_json["bin"].keys
-
-
-task(:package => [gcs_path.to_s, gcs_console_path.to_s]) do
+file(gcs_package_tar_gz => [gcs_path.to_s, gcs_console_path.to_s]) do
   rm_rf(gcs_package_path.to_s)
   cp_r(@dist_dir.to_s, gcs_package_path.to_s)
   executables_to_wrap.each do |executable_name|
@@ -294,6 +289,9 @@ task(:package => [gcs_path.to_s, gcs_console_path.to_s]) do
   end
 end
 
+desc("Create #{gcs_package_tar_gz}")
+task(:package => gcs_package_tar_gz)
+
 task(:default => :package)
 
 desc("Remove all auto generated files")
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index