From e4e9758aa5a096ccf7679dace5ef52a00b959a92 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 Aug 2010 08:18:42 +0000 Subject: [PATCH] * ext/extmk.rb (extract_makefile): follow the change of install-rb-default line format at r28850, which causes second run to create dummy makefiles. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ ext/extmk.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4e0d76b21d..3d006ffeee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Aug 7 17:18:34 2010 Nobuyoshi Nakada + + * ext/extmk.rb (extract_makefile): follow the change of + install-rb-default line format at r28850, which causes second + run to create dummy makefiles. + Sat Aug 7 14:08:44 2010 NARUSE, Yui * lib/mkmf.rb: change instance variable to global. diff --git a/ext/extmk.rb b/ext/extmk.rb index 916c3a0f02..c2b215425c 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -50,7 +50,7 @@ def extract_makefile(makefile, keep = true) return keep end installrb = {} - m.scan(/^install-rb-default:[ \t]*(\S+)\n\1:[ \t]*(\S+)/) {installrb[$2] = $1} + m.scan(/^install-rb-default:.*[ \t](\S+)(?:[ \t].*)?\n\1:[ \t]*(\S+)/) {installrb[$2] = $1} oldrb = installrb.keys.sort newrb = install_rb(nil, "").collect {|d, *f| f}.flatten.sort if target_prefix = m[/^target_prefix[ \t]*=[ \t]*\/(.*)/, 1]