diff options
Diffstat (limited to 'homebrew/ruby/.make.sh-auto')
-rw-r--r-- | homebrew/ruby/.make.sh-auto | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/homebrew/ruby/.make.sh-auto b/homebrew/ruby/.make.sh-auto new file mode 100644 index 000000000..ddb73f263 --- /dev/null +++ b/homebrew/ruby/.make.sh-auto @@ -0,0 +1,9 @@ +pkg:setup +rm_f %W[#{rubygems_bindir}/bundle #{rubygems_bindir}/bundler ] +rm_rf Dir[HOMEBREW_PREFIX/"lib/ruby/gems/#{api_version}/gems/bundler-*"] +rubygems_bindir.install_symlink Dir[libexec/"gembin/*"] +config_file = lib/"ruby/#{api_version}/rubygems/defaults/operating_system.rb" +config_file.unlink if config_file.exist? +config_file.write rubygems_config(api_version) +%w[sitearchdir vendorarchdir].each do |dir| +mkdir_p `#{bin}/ruby -rrbconfig -e 'print RbConfig::CONFIG["#{dir}"]'` |