summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-02 06:55:16 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-02 06:55:16 +0000
commitab59325da0e0f9ca40aa292395828691c7073b61 (patch)
tree0bac3a01e869473274990f7da3a008bb2a639d43
parentd068d734ac119cb00239ac8933d482ab219bb23f (diff)
downloadruby-ab59325da0e0f9ca40aa292395828691c7073b61.tar.gz
ruby-ab59325da0e0f9ca40aa292395828691c7073b61.tar.xz
ruby-ab59325da0e0f9ca40aa292395828691c7073b61.zip
* instruby.rb: for cross compile.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--instruby.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/instruby.rb b/instruby.rb
index b1cb95510..a5606e845 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