null+****@clear*****
null+****@clear*****
2012年 6月 21日 (木) 17:49:40 JST
Kouhei Sutou 2012-06-21 17:49:40 +0900 (Thu, 21 Jun 2012) New Revision: 9cfcff2059744c0a23df634d8de8dcb3ffa8b572 https://github.com/groonga/gcs/commit/9cfcff2059744c0a23df634d8de8dcb3ffa8b572 Log: package: create run-gcs in package task Modified files: packages/all-in-one/Rakefile Modified: packages/all-in-one/Rakefile (+4 -3) =================================================================== --- packages/all-in-one/Rakefile 2012-06-21 17:48:56 +0900 (06a2692) +++ packages/all-in-one/Rakefile 2012-06-21 17:49:40 +0900 (5c73032) @@ -168,8 +168,7 @@ namespace(:gcs) do end end -run_gcs_path = @dist_dir + "bin/run-gcs" -file(run_gcs_path.to_s => gcs_path.to_s) do +def create_gcs_wrapper(run_gcs_path) run_gcs_path.open("w") do |run_gcs| run_gcs.puts(<<-EOS) #!/bin/sh @@ -215,9 +214,11 @@ file(gcs_package_tar_gz_path.to_s) do Rake::Task["package"] end -task(:package => run_gcs_path.to_s) do +task(:package => gcs_path.to_s) do rm_rf(gcs_package_path.to_s) cp_r(@dist_dir.to_s, gcs_package_path.to_s) + run_gcs_path = @dist_dir + "bin/run-gcs" + create_gcs_wrapper(run_gcs_path) Dir.chdir(gcs_package_path.dirname.to_s) do sh("tar", "czf", gcs_package_tar_gz, gcs_package_basename) end -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Download