ruby-changes:24846
From: nobu <ko1@a...>
Date: Tue, 4 Sep 2012 10:40:23 +0900 (JST)
Subject: [ruby-changes:24846] nobu:r36897 (trunk): rbinstall.rb: skip symlinks
nobu 2012-09-04 10:40:11 +0900 (Tue, 04 Sep 2012) New Revision: 36897 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36897 Log: rbinstall.rb: skip symlinks * tool/rbinstall.rb (install_recursive): skip symlinks, which are made by `make runnable'. Modified files: trunk/tool/rbinstall.rb Index: tool/rbinstall.rb =================================================================== --- tool/rbinstall.rb (revision 36896) +++ tool/rbinstall.rb (revision 36897) @@ -227,9 +227,11 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/