From c8b7862e86cf4a5e940689071c46a80960daa215 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 12 Jan 2004 16:10:52 +0000 Subject: [PATCH] Checked in wrong version... :( git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/ri/ri_paths.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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']