[Groonga-commit] groonga/heroku-buildpack-groonga at 3a6224a [master] Export GROONGA_BASE_PATH again

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Feb 25 19:31:35 JST 2016


Kouhei Sutou	2016-02-25 19:31:35 +0900 (Thu, 25 Feb 2016)

  New Revision: 3a6224a1d79a200fe7f0593da44b37e885c84f8f
  https://github.com/groonga/heroku-buildpack-groonga/commit/3a6224a1d79a200fe7f0593da44b37e885c84f8f

  Message:
    Export GROONGA_BASE_PATH again

  Modified files:
    bin/compile

  Modified: bin/compile (+4 -1)
===================================================================
--- bin/compile    2016-02-23 10:39:22 +0900 (1be3c9b)
+++ bin/compile    2016-02-25 19:31:35 +0900 (53206e6)
@@ -10,7 +10,8 @@ include FileUtils
 
 build_dir, cache_dir, env_dir, = ARGV
 
-database_path = "groonga/data/db"
+base_path = "groonga"
+database_path = "#{base_path}/data/db"
 
 def detect_latest_version
   uri = "https://api.github.com/repos/groonga/groonga/releases"
@@ -162,6 +163,7 @@ Dir.chdir(build_dir) do
     ].join(File::PATH_SEPARATOR)
     env_file.puts(<<-GROONGA_SH)
 export LD_LIBRARY_PATH="#{app_ld_library_path}:$LD_LIBRARY_PATH"
+export GROONGA_BASE_PATH="#{app_dir}/#{base_path}"
 export GROONGA_DATABASE_PATH="#{app_dir}/#{database_path}"
     GROONGA_SH
   end
@@ -182,6 +184,7 @@ export PKG_CONFIG_PATH="#{pkg_config_paths.join(File::PATH_SEPARATOR)}:$PKG_CONF
 export GRN_PLUGINS_DIR="#{ENV["GRN_PLUGINS_DIR"]}"
 export GRN_RUBY_SCRIPTS_DIR="#{ENV["GRN_RUBY_SCRIPTS_DIR"]}"
 export MECABRC="#{ENV["MECABRC"]}"
+export GROONGA_BASE_PATH="#{build_dir}/#{base_path}"
 export GROONGA_DATABASE_PATH="#{build_dir}/#{database_path}"
     EXPORT
   end
-------------- next part --------------
HTML����������������������������...
Download 



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