1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/mkmf.rb (install_rb): fix handling of destination path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2001-03-10 16:03:56 +00:00
parent 15d67fba62
commit 118ff27661
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sun Mar 11 00:55:31 2001 WATANABE Hirofumi <eban@ruby-lang.org>
* lib/mkmf.rb (install_rb): fix handling of destination path.
Sat Mar 10 02:34:18 2001 WATANABE Hirofumi <eban@ruby-lang.org> Sat Mar 10 02:34:18 2001 WATANABE Hirofumi <eban@ruby-lang.org>
* math.c (math_log, math_log10): use nan() instead of 0.0/0.0 on Cygwin. * math.c (math_log, math_log10): use nan() instead of 0.0/0.0 on Cygwin.

View file

@ -155,7 +155,9 @@ def install_rb(mfile, dest, srcdir = nil)
mfile.printf "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' %s/%s\n", dest, f mfile.printf "\t@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' %s/%s\n", dest, f
end end
for f in path for f in path
mfile.printf "\t@$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)' %s/%s %s\n", libdir, f, dest d = '/' + File::dirname(f)
d = '' if d == '/.'
mfile.printf "\t@$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)' %s/%s %s%s\n", libdir, f, dest, d
end end
end end