mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
options.rb: include root for out-place build
* lib/rdoc/options.rb (RDoc#finish): include root path in include paths, to work in another directory than the source directory. [ruby-core:56282] [Bug #8712] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d562b6873
commit
835c555f7f
4 changed files with 28 additions and 1 deletions
|
@ -466,6 +466,8 @@ class RDoc::Options
|
|||
@op_dir ||= 'doc'
|
||||
|
||||
@rdoc_include << "." if @rdoc_include.empty?
|
||||
root = @root.to_path
|
||||
@rdoc_include << root unless @rdoc_include.include?(root)
|
||||
|
||||
if @exclude.nil? or Regexp === @exclude then
|
||||
# done, #finish is being re-run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue