From d7669a6a63515e205389eea1074df9d64347f805 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 21 Jul 2006 03:12:45 +0000 Subject: * ext/extmk.rb, lib/mkmf.rb (with_destdir): remove drive letter before prepending destdir on DOSISH. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/extmk.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/extmk.rb b/ext/extmk.rb index b0bc9f3c4..dbc1c92e5 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -382,7 +382,10 @@ end if $extout RbConfig.expand(extout = "#$extout", RbConfig::CONFIG.merge("topdir"=>$topdir)) if $install - RbConfig.expand(dest = "#{$destdir}#{$rubylibdir}") + dest = RbConfig.expand($rubylibdir.dup) + unless $destdir.empty? + dest.sub!($dest_prefix_pattern, RbConfig.expand($destdir.dup)) + end FileUtils.cp_r(extout+"/.", dest, :remove_destination => true, :verbose => true, :noop => $dryrun) exit end -- cgit