Kouhei Sutou
null+****@clear*****
Tue Feb 23 10:19:44 JST 2016
Kouhei Sutou 2016-02-23 10:19:44 +0900 (Tue, 23 Feb 2016) New Revision: f804c51d39d336677f82d732af96db27f0003467 https://github.com/groonga/heroku-buildpack-rroonga/commit/f804c51d39d336677f82d732af96db27f0003467 Message: Remove needless code Modified files: bin/compile Modified: bin/compile (+2 -18) =================================================================== --- bin/compile 2016-02-23 09:28:06 +0900 (65927ab) +++ bin/compile 2016-02-23 10:19:44 +0900 (90af2cc) @@ -1,11 +1,6 @@ #!/usr/bin/env ruby -require "pp" -pp ENV - require "fileutils" -require "tmpdir" -require "yaml" include FileUtils @@ -38,21 +33,10 @@ class Arguments < Struct.new(:build_dir, :cache_dir, :env_dir) end end -def update_mecabrc(mecabrc, prefix) - sh("sed", "-i.bak", "-e", "s,/app,#{prefix},g", mecabrc) - begin - yield - ensure - mv("#{mecabrc}.bak", mecabrc) - end -end - arguments = Arguments.new(*ARGV) puts("-----> Initializing database") Dir.chdir(arguments.build_dir) do - update_mecabrc(ENV["MECABRC"], arguments.build_dir) do - sh(ENV.to_h.merge(arguments.environment_variables), - "bundle", "exec", "ruby", File.join("groonga", "init.rb")) - end + sh(ENV.to_h.merge(arguments.environment_variables), + "bundle", "exec", "ruby", File.join("groonga", "init.rb")) end -------------- next part -------------- HTML����������������������������...Download