summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-01-15 20:49:18 +0900
committerNobuyoshi Nakada <[email protected]>2025-01-15 20:49:18 +0900
commit2599ac38cd24669cb7afa8b08e735bd25eb1b30a ()
treeaa51fd47f9165f4f05953048b47d7c4da068ac43 /tool/rbinstall.rb
parentfe2bc7783040a0e35477676a0cf61103ff3635a3 (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: Merged: https://.com/ruby/ruby/pull/12579
-rwxr-xr-xtool/rbinstall.rb4
1 files changed, 1 insertions, 3 deletions
@@ -150,6 +150,7 @@ def parse_args(argv = ARGV)
end
$destdir ||= $mflags.defined?("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}