* instruby.rb: for cross compile.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2006-10-02 06:55:16 +00:00
Родитель d752282786
Коммит 8e1455a16e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -262,8 +262,8 @@ install?(:local, :comm, :bin) do
if ruby_bin_dosish
batfile = File.join(bindir, name + ".bat")
open_for_install(batfile, "w") {|b|
b.print(<<EOH+shebang+body+<<EOF)
open_for_install(batfile, "wb") {|b|
b.print((<<EOH+shebang+body+<<EOF).gsub(/\r?\n/, "\r\n"))
@echo off
@if not "%~d0" == "~d0" goto WinNT
#{ruby_bin_dosish} -x "#{batfile}" %1 %2 %3 %4 %5 %6 %7 %8 %9