Skip to content

Commit

Permalink
Add a fix for 1.8.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
holizz committed Apr 29, 2010
1 parent 3beb337 commit d435648
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions doxydoc.rb
Expand Up @@ -131,9 +131,13 @@ def scan
def generate_doxyfile global = false
@doxyfile = Tempfile.open('Doxyfile')
@doxyout = nil
Tempfile.open('doxygen') do |f|
@doxyout=f.path
f.unlink
begin
Tempfile.open('doxygen') do |f|
@doxyout=f.path
f.unlink
end
rescue NoMethodError
# Fix for 1.8.6 -> unlink sets @data to nil, which causes problems on exit
end
Dir.mkdir @doxyout

Expand Down

0 comments on commit d435648

Please sign in to comment.