yarv-dev-en:208
From: Kevin Tew <tewk tewk.com>
Date: Sun, 22 Oct 2006 10:46:21 -0600
Subject: [yarv-dev-en:208] Autoconf 2.6 patch
If you remember me, we had lunch at RubyConf.
This is a patch that I modified from Why's patch to apply to SVN Head.
It works for me on OS X.
Index: mkconfig.rb
===================================================================
--- mkconfig.rb (revision 568)
+++ mkconfig.rb (working copy)
@@ -37,11 +37,13 @@
has_version = false
File.foreach "config.status" do |line|
next if /^#/ =~ line
- if /^s[%,] program_transform_name [%,]s,(.*)/ =~ line
+ mkbang = /(?:#{Regexp::quote("|#_!!_#|")})?/
+ case line
+ when /^s[%,] program_transform_name [%,]s,(.*)/
next if $install_name
ptn = $1.sub(/\$\$/, '$').split(/,/) #'
v_fast << " CONFIG[\"ruby_install_name\"] = \"" +
"ruby".sub(/#{ptn[0]}/,ptn[1]) + "\"\n"
- elsif /^s[%,] (\w+) [%,](.*)[%,]/ =~ line
+ when /^s[%,] (\w+) [%,]#{mkbang}(.*)[%,]/
name = $1
val = $2 || ""
next if /^(?:ac_.*|DEFS|configure_input)$/ =~ name
@@ -59,7 +61,7 @@
v_others << v
end
has_version = true if name == "MAJOR"
- elsif /^(?:ac_given_)?INSTALL=(.*)/ =~ line
+ when /^(?:ac_given_)?INSTALL=(.*)/
v_fast << " CONFIG[\"INSTALL\"] = " + $1 + "\n"
end
# break if /^CEOF/
Index: ToDo
===================================================================
--- ToDo (revision 568)
+++ ToDo (working copy)
@@ -1,4 +1,4 @@
http://yarv.rubyforge.org/pukiwiki/pukiwiki.php?ToDo
-feel free to change avobe page.
+Feel free to change page above.
Kevin Tew (Cardinal)
--
ML: yarv-dev-en quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml
-> 208 2006-10-23 01:46 [tewk tewk.com ] Autoconf 2.6 patch 209 2006-10-23 04:21 ┣[znmeb cesmail.net ] 215 2006-10-25 21:39 ┃┗[ko1 atdot.net ] 218 2006-10-26 00:54 ┃ ┗[znmeb cesmail.net ] 216 2006-10-25 21:40 ┗[ko1 atdot.net ] 217 2006-10-26 00:41 ┗[znmeb cesmail.net ]