diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-21 03:12:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-21 03:12:45 +0000 |
commit | 53f6b89e7e2f9c602e12ed840e374690ef04a4d4 (patch) | |
tree | e37ffce270471202b50f4f399665a6cfd2bbacc9 /ext/extmk.rb | |
parent | 58f09b091649b5e575c16f6a6b98fcac32ac7c84 (diff) |
* ext/extmk.rb, lib/mkmf.rb (with_destdir): remove drive letter before
prepending destdir on DOSISH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r-- | ext/extmk.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index b0bc9f3c4f..dbc1c92e57 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 |