Kouhei Sutou
null+****@clear*****
Mon Jul 7 23:22:14 JST 2014
Kouhei Sutou 2014-07-07 23:22:14 +0900 (Mon, 07 Jul 2014) New Revision: 0caa9784b48be2e0a451c3b98da04266c739d4e2 https://github.com/groonga/heroku-buildpack-groonga/commit/0caa9784b48be2e0a451c3b98da04266c739d4e2 Message: Use meaningful name Modified files: bin/compile Modified: bin/compile (+6 -6) =================================================================== --- bin/compile 2014-07-07 23:21:40 +0900 (543b4a6) +++ bin/compile 2014-07-07 23:22:14 +0900 (9e13e44) @@ -83,17 +83,17 @@ Dir.chdir(build_dir) do end puts("-----> Setting environment variables") - open("#{env_dir}/LD_LIBRARY_PATH", "w") do |f| - f.write("#{absolete_prefix}/lib:$LD_LIBRARY_PATH") + open("#{env_dir}/LD_LIBRARY_PATH", "w") do |env_file| + env_file.write("#{absolete_prefix}/lib:$LD_LIBRARY_PATH") end - open("#{env_dir}/PKG_CONFIG_PATH", "w") do |f| - f.write("#{absolete_prefix}/lib/pkgconfig:$PKG_CONFIG_PATH") + open("#{env_dir}/PKG_CONFIG_PATH", "w") do |env_file| + env_file.write("#{absolete_prefix}/lib/pkgconfig:$PKG_CONFIG_PATH") end app_dir = ENV["HOME"] profile_dir="#{build_dir}/.profile.d" FileUtils.mkdir_p(profile_dir) unless FileTest.exist?(profile_dir) - open("#{profile_dir}/groonga.sh", "w") do |f| - f.write("export LD_LIBRARY_PATH=#{app_dir}/#{prefix}/lib:$LD_LIBRARY_PATH") + open("#{profile_dir}/groonga.sh", "w") do |env_file| + env_file.write("export LD_LIBRARY_PATH=#{app_dir}/#{prefix}/lib:$LD_LIBRARY_PATH") end end -------------- next part -------------- HTML����������������������������... 下載