diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-02 06:55:16 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-02 06:55:16 +0000 |
commit | 8e1455a16e0dba91e271b1ab7512526aa5329749 (patch) | |
tree | ca81c634b304f0d3851ba05f28a0eff0ef86b5d0 /instruby.rb | |
parent | d7522827862b2ed95b5624fb6b031b15f3da3ab3 (diff) |
* instruby.rb: for cross compile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rw-r--r-- | instruby.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/instruby.rb b/instruby.rb index be68feb579..5548fa1f96 100644 --- a/instruby.rb +++ b/instruby.rb @@ -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 |