diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-04 01:40:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-04 01:40:11 +0000 |
commit | 7d79f355fcfb39c52f5b47f44c99c0e645d1878a (patch) | |
tree | 8c38459164a2b9605d7292f1552cde5ad8643b5d /tool | |
parent | 1ff165c92bbc079eeb21ca1796fabf1b95454924 (diff) | |
download | ruby-7d79f355fcfb39c52f5b47f44c99c0e645d1878a.tar.gz |
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
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbinstall.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index c36057af59..26eab1cd01 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -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 |