diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/rubyat25/.make.sh-auto | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/rubyat25/.make.sh-auto')
-rw-r--r-- | homebrew/rubyat25/.make.sh-auto | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/homebrew/rubyat25/.make.sh-auto b/homebrew/rubyat25/.make.sh-auto new file mode 100644 index 000000000..6682f9828 --- /dev/null +++ b/homebrew/rubyat25/.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 +%w[sitearchdir vendorarchdir].each do |dir| +mkdir_p `#{bin}/ruby -rrbconfig -e 'print RbConfig::CONFIG["#{dir}"]'` |