diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-12 16:10:52 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-12 16:10:52 +0000 |
commit | d6a7ab911ba27caf9e5ef93ffdf7d0ab324ec7b2 (patch) | |
tree | 504c3448ae92d2576aec8b51829db490922e45fa /lib/rdoc | |
parent | 109d8bbb42ec764428694c5466630debbeb76550 (diff) |
Checked in wrong version... :(
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/ri/ri_paths.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/rdoc/ri/ri_paths.rb b/lib/rdoc/ri/ri_paths.rb index ff8257a546..32c2542c04 100644 --- a/lib/rdoc/ri/ri_paths.rb +++ b/lib/rdoc/ri/ri_paths.rb @@ -29,7 +29,13 @@ module RI version = Config::CONFIG['ruby_version'] base = File.join(Config::CONFIG['datadir'], "ri", version) - SYSDIR = File.join(base, "system") + + if ENV["DESTDIR"] + SYSDIR = File.join(ENV["DESTDIR"], base, "system") + else + SYSDIR = File.join(base, "system") + end + SITEDIR = File.join(base, "site") homedir = ENV['HOME'] || ENV['USERPROFILE'] || ENV['HOMEPATH'] |