mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	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
					
				
					 2 changed files with 10 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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>
 | 
			
		||||
 | 
			
		||||
	* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_constant): 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -235,6 +235,10 @@ module RDoc
 | 
			
		|||
      options = Options.instance
 | 
			
		||||
      options.parse(argv, GENERATORS)
 | 
			
		||||
    
 | 
			
		||||
      unless options.all_one_file
 | 
			
		||||
        setup_output_dir(options.op_dir)
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      file_info = parse_files(options)
 | 
			
		||||
 | 
			
		||||
      gen = options.generator
 | 
			
		||||
| 
						 | 
				
			
			@ -250,10 +254,7 @@ module RDoc
 | 
			
		|||
 | 
			
		||||
        pwd = Dir.pwd
 | 
			
		||||
 | 
			
		||||
        unless options.all_one_file
 | 
			
		||||
          setup_output_dir(options.op_dir)
 | 
			
		||||
          Dir.chdir(options.op_dir)
 | 
			
		||||
        end
 | 
			
		||||
        Dir.chdir(options.op_dir)  unless options.all_one_file
 | 
			
		||||
 | 
			
		||||
        begin
 | 
			
		||||
          Diagram.new(file_info, options).draw if options.diagram
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue