summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-07 08:18:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-07 08:18:42 +0000
commite4e9758aa5a096ccf7679dace5ef52a00b959a92 (patch)
tree53e087d26fa9a519c7c127df9e441632bf14ec73
parentc53664c84da2365623a0998f1ed52969d3b57e78 (diff)
* 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
-rw-r--r--ChangeLog6
-rwxr-xr-xext/extmk.rb2
2 files changed, 7 insertions, 1 deletions
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 <nobu@ruby-lang.org>
+
+ * 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 <naruse@ruby-lang.org>
* 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]