Kouhei Sutou
null+****@clear*****
Tue Feb 23 00:16:58 JST 2016
Kouhei Sutou 2016-02-23 00:16:58 +0900 (Tue, 23 Feb 2016) New Revision: 6cadd06bca12b936dc985358e6245df89287441c https://github.com/groonga/heroku-buildpack-groonga/commit/6cadd06bca12b936dc985358e6245df89287441c Message: Swap dictionary path Modified files: bin/compile Modified: bin/compile (+4 -2) =================================================================== --- bin/compile 2016-02-23 00:12:22 +0900 (a55d796) +++ bin/compile 2016-02-23 00:16:58 +0900 (ed844e1) @@ -117,11 +117,13 @@ Dir.chdir(build_dir) do ENV["LD_LIBRARY_PATH"] = build_path_environment_value(ld_library_paths) ENV["GRN_PLUGINS_DIR"] = "#{absolete_prefix}/lib/groonga/plugins" ENV["GRN_RUBY_SCRIPTS_DIR"] = "#{absolete_prefix}/lib/groonga/scripts/ruby" - ENV["MECABRC"] = "#{build_dir}/vendor/mecab/etc/mecabrc" - sh("ls", ENV["MECABRC"]) + mecabrc = "#{build_dir}/vendor/mecab/etc/mecabrc" + ENV["MECABRC"] = mecabrc + sh("sed", "-i.bak", "-e", "s,/app,#{build_dir},g", ENV["MECABRC"]) mkdir_p(File.dirname(database_path)) sh("groonga", "--log-path", "/tmp/log", "--log-level", "debug", "-n", database_path, "quit") puts(File.read("/tmp/log")) + mv("#{mecabrc}.bak", mecabrc) puts("-----> Loading data") Dir.glob("groonga/*.grn").sort.each do |grn| -------------- next part -------------- HTML����������������������������... 다운로드