Check opdir _before_ parsing files
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
74d704c263
commit
dc03b05a7e
@ -1,3 +1,8 @@
|
|||||||
|
Tue Feb 24 06:16:22 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
|
* lib/rdoc/rdoc.rb (RDoc::RDoc::document): Now create op dir _before_
|
||||||
|
parsing files.
|
||||||
|
|
||||||
Tue Feb 24 06:08:47 2004 Dave Thomas <dave@pragprog.com>
|
Tue Feb 24 06:08:47 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_constant):
|
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_constant):
|
||||||
|
@ -235,6 +235,10 @@ module RDoc
|
|||||||
options = Options.instance
|
options = Options.instance
|
||||||
options.parse(argv, GENERATORS)
|
options.parse(argv, GENERATORS)
|
||||||
|
|
||||||
|
unless options.all_one_file
|
||||||
|
setup_output_dir(options.op_dir)
|
||||||
|
end
|
||||||
|
|
||||||
file_info = parse_files(options)
|
file_info = parse_files(options)
|
||||||
|
|
||||||
gen = options.generator
|
gen = options.generator
|
||||||
@ -250,10 +254,7 @@ module RDoc
|
|||||||
|
|
||||||
pwd = Dir.pwd
|
pwd = Dir.pwd
|
||||||
|
|
||||||
unless options.all_one_file
|
Dir.chdir(options.op_dir) unless options.all_one_file
|
||||||
setup_output_dir(options.op_dir)
|
|
||||||
Dir.chdir(options.op_dir)
|
|
||||||
end
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Diagram.new(file_info, options).draw if options.diagram
|
Diagram.new(file_info, options).draw if options.diagram
|
||||||
|
Loading…
x
Reference in New Issue
Block a user