[mkmf] quoting directory names

e$B$J$+$@$G$9!#e(B

e$B$A$g$C$HKb$,:9$7$Fe(BOneClickInstallere$B$re(B%ProgramFiles%e$B$N2<$K%$%s%9%H!<%ke(B
e$B$7$F$$?$s$G$9$,!"0F$NDj$H$$$&$+3HD%%i%$%V%i%j$N%3%s%Q%$%k$K<:GT$7$?$Ne(B
e$B$G%Q%C%A$G$9!#0l1~e(Bcygwine$B$G$O3NG’:Q$
!#e(B

sed ‘s/<Config>/Rb&/’ e$B$9$l$Pe(Btrunke$B$K$b$"$?$k$O$:!#e(B

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

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:28413] [mkmf] quoting directory names”
on Wed, 1 Mar 2006 12:55:42 +0900, “Nobuyoshi N.”
[email protected] writes:

|e$B$A$g$C$HKb$,:9$7$Fe(BOneClickInstallere$B$re(B%ProgramFiles%e$B$N2<$K%$%s%9%H!<%ke(B
|e$B$7$F$$?$s$G$9$,!"0F$NDj$H$$$&$+3HD%%i%$%V%i%j$N%3%s%Q%$%k$K<:GT$7$?$Ne(B
|e$B$G%Q%C%A$G$9!#0l1~e(Bcygwine$B$G$O3NG’:Q$
!#e(B
|
|sed ‘s/<Config>/Rb&/’ e$B$9$l$Pe(Btrunke$B$K$b$"$?$k$O$:!#e(B

e$B$s$8$c!"%3%_%C%H$7$F2<$5$$!#e(B