From fc45e91627ad0a5c717f2dd0a31f74d74a9e3725 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/branches/ruby_1_8@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 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