diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-05 03:43:34 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-05 03:43:34 +0000 |
commit | 107e177cb8a679baba5726cc299ae8b1cb50803c (patch) | |
tree | 0261f215512301e91448ff036afdaaa71d113a60 /lib/mkmf.rb | |
parent | aa2de9e3e00db4ecffa592cdeb177d13b28d328a (diff) | |
download | ruby-107e177cb8a679baba5726cc299ae8b1cb50803c.tar.gz |
* lib/mkmf.rb (create_makefile): need to convert path separetor
before invoking install command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 157f20ce83..097be403e1 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1025,7 +1025,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)") |