aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-16 14:54:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-16 14:54:59 +0000
commitad4fccdd3c10f2beb41524e1f6f58bd8c2e0f236 (patch)
tree10b871c6be15a21b7c3c95a39a0d6dc9e53ec528 /tool
parent182599a7a719b4ba7426633f6b17b3c27c40b28a (diff)
downloadruby-ad4fccdd3c10f2beb41524e1f6f58bd8c2e0f236.tar.gz
rbinstall.rb: ignore skipped exts
* tool/rbinstall.rb (default-gems): skip gemspec if corresponding Makefile does not exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/rbinstall.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 9c0a4fa1ff..0f4804c94d 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -699,9 +699,14 @@ end
install?(:ext, :arch, :gem, :'default-gems', :'default-gems-arch') do
install_default_gem('ext', srcdir) do |path|
# assume that gemspec and extconf.rb are placed in the same directory
- IO.foreach(File.dirname(path[(srcdir.size+1)..-1]) + "/Makefile") do |l|
- break true if /^TARGET\s*=/ =~ l
+ success = false
+ begin
+ IO.foreach(File.dirname(path[(srcdir.size+1)..-1]) + "/Makefile") do |l|
+ break success = true if /^TARGET\s*=/ =~ l
+ end
+ rescue Errno::ENOENT
end
+ success
end
end