[#28446] named capture and /g, /G option — "K.Kosako" <sndgk393@...>

Ruby 1.9に、

30 messages 2006/03/21
[#28449] Re: named capture and /g, /G option — "K.Kosako" <sndgk393@...> 2006/03/21

> Ruby 1.9に、

[#28452] Re: named capture and /g, /G option — Yukihiro Matsumoto <matz@...> 2006/03/21

まつもと ゆきひろです

[#28453] Re: named capture and /g, /G option — "K.Kosako" <sndgk393@...> 2006/03/21

Yukihiro Matsumoto wrote:

[ruby-dev:28413] [mkmf] quoting directory names

From: "Nobuyoshi Nakada" <nobu@...>
Date: 2006-03-01 03:55:42 UTC
List: ruby-dev #28413
なかだです。

ちょっと魔が差してOneClickInstallerを%ProgramFiles%の下にインストール
してみたんですが、案の定というか拡張ライブラリのコンパイルに失敗したの
でパッチです。一応cygwinでは確認済み。

sed 's/\<Config\>/Rb&/' すればtrunkにもあたるはず。


Index: lib/mkmf.rb
===================================================================
RCS file: /pub/cvs/ruby/src/ruby/lib/mkmf.rb,v
retrieving revision 1.162.2.47
diff -U 2 -p -r1.162.2.47 mkmf.rb
--- lib/mkmf.rb	28 Nov 2005 00:22:53 -0000	1.162.2.47
+++ lib/mkmf.rb	28 Feb 2006 04:09:39 -0000
@@ -972,5 +972,5 @@ arch = #{CONFIG['arch']}
 sitearch = #{CONFIG['sitearch']}
 ruby_version = #{Config::CONFIG['ruby_version']}
-ruby = #{$ruby}
+ruby = #{$ruby.quote}
 RUBY = $(ruby#{sep})
 RM = #{config_string('RM') || '$(RUBY) -run -e rm -- -f'}
@@ -1102,8 +1102,8 @@ static:		$(STATIC_LIB)#{$extout ? " inst
   mfile.print "install: install-so install-rb\n\n"
   sodir = (dir = "$(RUBYARCHDIR)").dup
-  mfile.print("install-so: #{dir}\n")
+  mfile.print("install-so: \"#{dir}\"\n")
   if target
     f = "$(DLLIB)"
-    dest = "#{dir}/#{f}"
+    dest = "\"#{dir}/#{f}\""
     mfile.print "install-so: #{dest}\n"
     unless $extout
@@ -1118,5 +1118,5 @@ static:		$(STATIC_LIB)#{$extout ? " inst
         dir.gsub!(/(\$\{\w+)(\})/) {$1+sep+$2}
       end
-      mfile.print "\t$(INSTALL_PROG) #{f} #{dir}\n"
+      mfile.print "\t$(INSTALL_PROG) #{f} \"#{dir}\"\n"
     end
   end
@@ -1133,5 +1133,5 @@ static:		$(STATIC_LIB)#{$extout ? " inst
       end
       files.each do |f|
-	dest = "#{dir}/#{File.basename(f)}"
+	dest = "\"#{dir}/#{File.basename(f)}\""
 	mfile.print("install-rb#{sfx}: #{dest}\n")
 	mfile.print("#{dest}: #{f}\n\t$(#{$extout ? 'COPY' : 'INSTALL_DATA'}) ")
@@ -1150,5 +1150,5 @@ static:		$(STATIC_LIB)#{$extout ? " inst
   end
   dirs.unshift(sodir) if target and !dirs.include?(sodir)
-  dirs.each {|dir| mfile.print "#{dir}:\n\t$(MAKEDIRS) $@\n"}
+  dirs.each {|dir| mfile.print "\"#{dir}\":\n\t$(MAKEDIRS) $@\n"}

   mfile.print <<-SITEINSTALL


--
--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread

Prev Next