1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rbinstall.rb: skip symlinks

* tool/rbinstall.rb (install_recursive): skip symlinks, which are made
  by `make runnable'.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-09-04 01:40:11 +00:00
parent 1ff165c92b
commit 7d79f355fc

View file

@ -227,9 +227,11 @@ def install_recursive(srcdir, dest, options = {})
Dir.foreach(file) do |f|
src = File.join(file, f)
d = File.join(dest, dir = src[subpath])
stat = File.stat(src) rescue next
stat = File.lstat(src) rescue next
if stat.directory?
files << [src, d, true] if /\A\./ !~ f and !prune[dir]
elsif stat.symlink?
# skip
else
files << [src, d, false] if File.fnmatch?(glob, f) and !skip[f]
end