summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-21 03:12:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-21 03:12:45 +0000
commit08046447bb17f2effa6e67da63c19f2820638555 (patch)
tree3ffc3e2017249b773ccc58ae649a65f6fe2d9127 /ext
parentae441f7a525a54fd1c6fe94462dc6ecd267822cd (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/branches/ruby_1_8@10580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 5badcc755f..bbcb3c09b8 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -382,7 +382,10 @@ end
if $extout
Config.expand(extout = "#$extout", Config::CONFIG.merge("topdir"=>$topdir))
if $install
- Config.expand(dest = "#{$destdir}#{$rubylibdir}")
+ dest = Config.expand($rubylibdir.dup)
+ unless $destdir.empty?
+ dest.sub!($dest_prefix_pattern, Config.expand($destdir.dup))
+ end
FileUtils.cp_r(extout+"/.", dest, :verbose => true, :noop => $dryrun)
exit
end