From 16190c5441f3b89d36ff96dc0f942ad2aaecea8d Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 12 Jan 2004 16:10:52 +0000 Subject: Checked in wrong version... :( git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/ri/ri_paths.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rdoc/ri/ri_paths.rb b/lib/rdoc/ri/ri_paths.rb index ff8257a54..32c2542c0 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'] -- cgit