diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-02 06:50:14 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-02 06:50:14 +0000 |
commit | c0b674b4fed24f425ad5520ca02c81e539ec8848 (patch) | |
tree | 49ed7598a2e6ddf6c00486bc1de2c2b5f9819ff8 /instruby.rb | |
parent | a7ef811092e12dab201e81576bc27fe38ffe4064 (diff) | |
download | ruby-c0b674b4fed24f425ad5520ca02c81e539ec8848.tar.gz ruby-c0b674b4fed24f425ad5520ca02c81e539ec8848.tar.xz ruby-c0b674b4fed24f425ad5520ca02c81e539ec8848.zip |
* instruby.rb: batfile should be CRLF'ed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11063 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 b54ff816d..be68feb57 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, "wb") {|b| - b.print((<<EOH+shebang+body.chomp+<<EOF).gsub(/^\s+/, '').gsub(/^$/, "\r")) + open_for_install(batfile, "w") {|b| + b.print(<<EOH+shebang+body+<<EOF) @echo off @if not "%~d0" == "~d0" goto WinNT #{ruby_bin_dosish} -x "#{batfile}" %1 %2 %3 %4 %5 %6 %7 %8 %9 |