diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-01-15 20:49:18 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-01-15 20:49:18 +0900 |
commit | 2599ac38cd24669cb7afa8b08e735bd25eb1b30a (patch) | |
tree | aa51fd47f9165f4f05953048b47d7c4da068ac43 | |
parent | fe2bc7783040a0e35477676a0cf61103ff3635a3 (diff) |
Expand `$destdir` to enable rdoc plugins for rubygems
`Gem::InstallerUninstallerUtils#regenerate_plugins_for` assumes that
`plugins_dir` is an absolute path as same as the target plugin files.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12579
-rwxr-xr-x | tool/rbinstall.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index bf47bed7d5..c469ec56a4 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -150,6 +150,7 @@ def parse_args(argv = ARGV) end $destdir ||= $mflags.defined?("DESTDIR") + $destdir = File.expand_path($destdir) if $destdir if $extout ||= $mflags.defined?("EXTOUT") RbConfig.expand($extout) end @@ -688,9 +689,6 @@ module RbInstall def write_cache_file end - def generate_plugins - end - def shebang(bin_file_name) path = File.join(gem_dir, spec.bindir, bin_file_name) first_line = File.open(path, "rb") {|file| file.gets} |