Ticket #15639: files_patch-setup.rb.diff

File files_patch-setup.rb.diff, 674 bytes (added by blb@…, 16 years ago)

files/patch-setup.rb.diff

  • setup.rb

    old new  
    213213
    214214# install RDoc
    215215
    216 gem_doc_dir = File.join Gem.dir, 'doc'
     216gem_doc_dir = File.join '@@DESTROOT@@', Gem.dir, 'doc'
     217mkdir_p gem_doc_dir
    217218rubygems_name = "rubygems-#{Gem::RubyGemsVersion}"
    218219rubygems_doc_dir = File.join gem_doc_dir, rubygems_name
    219220
     
    221222   (not File.exist? rubygems_doc_dir or
    222223    File.writable? rubygems_doc_dir) then
    223224  puts "Removing old RubyGems RDoc and ri"
    224   Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir|
     225  Dir[File.join(gem_doc_dir, 'rubygems-[0-9]*')].each do |dir|
    225226    rm_rf dir
    226227  end
    227228