summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2026-01-08 16:35:34 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2026-01-08 18:48:00 +0900
commit4a988b7f480d30fbc06e3e3399611172072bf58e (patch)
treee49d51411530b629258248e96729cca3c89ffbc8 /tool
parent9c49084a203a4b8a3abca653dee6781b9e5ed5fb (diff)
Inject tsort path before rdoc
Diffstat (limited to 'tool')
-rwxr-xr-xtool/rdoc-srcdir6
1 files changed, 4 insertions, 2 deletions
diff --git a/tool/rdoc-srcdir b/tool/rdoc-srcdir
index 275f12fe42..ecc49b4b2c 100755
--- a/tool/rdoc-srcdir
+++ b/tool/rdoc-srcdir
@@ -1,7 +1,9 @@
#!ruby -W0
-rdoc_path = Dir.glob("#{File.dirname(__dir__)}/.bundle/gems/rdoc-*").first
-$LOAD_PATH.unshift("#{rdoc_path}/lib")
+%w[tsort rdoc].each do |lib|
+ path = Dir.glob("#{File.dirname(__dir__)}/.bundle/gems/#{lib}-*").first
+ $LOAD_PATH.unshift("#{path}/lib")
+end
require 'rdoc/rdoc'
# Make only the output directory relative to the invoked directory.