[Groonga-commit] groonga/heroku-buildpack-groonga at 2a1a36c [master] Fold long lines

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jul 7 23:21:40 JST 2014


Kouhei Sutou	2014-07-07 23:21:40 +0900 (Mon, 07 Jul 2014)

  New Revision: 2a1a36cf8fc76b7b21dd5a42bea0067a1d56a2b6
  https://github.com/groonga/heroku-buildpack-groonga/commit/2a1a36cf8fc76b7b21dd5a42bea0067a1d56a2b6

  Message:
    Fold long lines

  Modified files:
    bin/compile

  Modified: bin/compile (+9 -3)
===================================================================
--- bin/compile    2014-07-07 23:20:46 +0900 (c40a0d8)
+++ bin/compile    2014-07-07 23:21:40 +0900 (543b4a6)
@@ -83,11 +83,17 @@ Dir.chdir(build_dir) do
   end
 
   puts("-----> Setting environment variables")
-  open("#{env_dir}/LD_LIBRARY_PATH", "w"){|f| f.write("#{absolete_prefix}/lib:$LD_LIBRARY_PATH")}
-  open("#{env_dir}/PKG_CONFIG_PATH", "w"){|f| f.write("#{absolete_prefix}/lib/pkgconfig:$PKG_CONFIG_PATH")}
+  open("#{env_dir}/LD_LIBRARY_PATH", "w") do |f|
+    f.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")
+  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"){|f| f.write("export LD_LIBRARY_PATH=#{app_dir}/#{prefix}/lib:$LD_LIBRARY_PATH")}
+  open("#{profile_dir}/groonga.sh", "w") do |f|
+    f.write("export LD_LIBRARY_PATH=#{app_dir}/#{prefix}/lib:$LD_LIBRARY_PATH")
+  end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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