зеркало из https://github.com/github/ruby.git
* instruby.rb (install_recursive): skip .svn directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8782d3d977
Коммит
cfb6b44bde
|
@ -1,3 +1,7 @@
|
|||
Sun Jun 10 16:07:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* instruby.rb (install_recursive): skip .svn directories.
|
||||
|
||||
Sun Jun 10 15:44:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* win32/Makefile.sub (config.status): rubyhdrdir was missing.
|
||||
|
|
|
@ -126,7 +126,10 @@ def install_recursive(srcdir, dest, options = {})
|
|||
noinst = options.delete(:no_install)
|
||||
subpath = srcdir.size..-1
|
||||
Dir.glob("#{srcdir}/**/*", File::FNM_DOTMATCH) do |src|
|
||||
next if /\A\.{1,2}\z|\A\.\#|\A\#.*\#\z|~\z/ =~ (base = File.basename(src))
|
||||
case base = File.basename(src)
|
||||
when /\A\.{1,2}\z/, /\A\.\#/, /\A\#.*\#\z/, /~\z/, /\A\.svn\z/
|
||||
next
|
||||
end
|
||||
if noinst
|
||||
if Array === noinst
|
||||
next if noinst.any? {|n| File.fnmatch?(n, base)}
|
||||
|
|
Загрузка…
Ссылка в новой задаче