[前][次][番号順一覧][スレッド一覧][生データ]

yarv-dev-en:209

From: "M. Edward (Ed) Borasky" <znmeb cesmail.net>
Date: Sun, 22 Oct 2006 12:21:08 -0700
Subject: [yarv-dev-en:209] Re: Autoconf 2.6 patch

Kevin Tew wrote:
> 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
>
Yes ... I was just going to ask what was broken in autoconf.

Ed Borasky
also at RubyConf -- the guy that wants "narray" semantics as a primitive 
data type in Ruby 1.9.1 :)

--
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   ]