From 017ee451d827eecf649e832616e1505a3c916668 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 5 Aug 2005 03:43:34 +0000 Subject: * lib/mkmf.rb (create_makefile): need to convert path separetor before invoking install command. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mkmf.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib/mkmf.rb') diff --git a/lib/mkmf.rb b/lib/mkmf.rb index a438e1fae..55b855dc4 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1023,7 +1023,17 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""} dest = "#{dir}/#{f}" mfile.print "install-so: #{dest}\n" unless $extout - mfile.print "#{dest}: #{f}\n\t$(INSTALL_PROG) #{f} #{dir}\n" + mfile.print "#{dest}: #{f}\n" + if (sep = config_string('BUILD_FILE_SEPARATOR')) + f.gsub!("/", sep) + dir.gsub!("/", sep) + sep = ":/="+sep + f.gsub!(/(\$\(\w+)(\))/) {$1+sep+$2} + f.gsub!(/(\$\{\w+)(\})/) {$1+sep+$2} + dir.gsub!(/(\$\(\w+)(\))/) {$1+sep+$2} + dir.gsub!(/(\$\{\w+)(\})/) {$1+sep+$2} + end + mfile.print "\t$(INSTALL_PROG) #{f} #{dir}\n" end end dirs << (dir = "$(RUBYLIBDIR)") -- cgit