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 | c8b7862e86cf4a5e940689071c46a80960daa215 (patch) | |
tree | fcbda0e62eb397a759907d430cb39d87ac6c0c45 /lib/rdoc/ri/ri_paths.rb | |
parent | 6cea9bc9041bd8a74d53cb7b647d6957180b9957 (diff) |
Checked in wrong version... :(
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri/ri_paths.rb')
-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'] |