diff options
Diffstat (limited to 'tool/rdoc-srcdir')
-rwxr-xr-x | tool/rdoc-srcdir | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/rdoc-srcdir b/tool/rdoc-srcdir index 03e5171650..a6a3c9ee24 100755 --- a/tool/rdoc-srcdir +++ b/tool/rdoc-srcdir @@ -1,6 +1,7 @@ #!ruby -W0 -$:.unshift(File.expand_path("../lib", __dir__)) +rdoc_path = Dir.glob("#{ARGV[0]}/.bundle/gems/rdoc-*").first +$LOAD_PATH.unshift("#{rdoc_path}/lib") require 'rdoc/rdoc' # Make only the output directory relative to the invoked directory. |