summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-03 12:24:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-03 12:24:53 +0000
commitdc4daa30be8e8d22a3fbadebe61906781d852b11 (patch)
tree02fe98837257c9488889ca0471f0a500563af448 /ext
parentd9882a307058d2007732735bcd7df4eb5f06f0f5 (diff)
downloadruby-dc4daa30be8e8d22a3fbadebe61906781d852b11.tar.gz
ruby-dc4daa30be8e8d22a3fbadebe61906781d852b11.tar.xz
ruby-dc4daa30be8e8d22a3fbadebe61906781d852b11.zip
* lib/fileutils.rb (FileUtils.cp_r): implement :remove_destination
option. * ext/extmk.rb: use :remove_destination to install extension libraries to avoid SEGV. [ruby-dev:28417] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 8daf3ae38..93f9a2fcc 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -381,7 +381,7 @@ if $extout
RbConfig.expand(extout = "#$extout", RbConfig::CONFIG.merge("topdir"=>$topdir))
if $install
RbConfig.expand(dest = "#{$destdir}#{$rubylibdir}")
- FileUtils.cp_r(extout+"/.", dest, :verbose => true, :noop => $dryrun)
+ FileUtils.cp_r(extout+"/.", dest, :remove_destination => true, :verbose => true, :noop => $dryrun)
exit
end
unless $ignore