diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-31 08:42:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-31 08:42:25 +0000 |
commit | 8f2683ede5f879c5b1a62aeac90a554cde11e33c (patch) | |
tree | a1fcd031d6302f102b934b8d8ae2f1880660cc2a /tool | |
parent | e783dcd8cef51631964dccc20963d5cfd9628278 (diff) | |
download | ruby-8f2683ede5f879c5b1a62aeac90a554cde11e33c.tar.gz |
rbinstall.rb: no CR
* tool/rbinstall.rb (bin-comm): no CR at EOF in batch files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbinstall.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 3c4a4803c4..967b4162f3 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -490,7 +490,7 @@ install?(:local, :comm, :bin, :'bin-comm') do when "exe" stub + shebang + body when "bat" - [<<-"EOH".gsub(/^\s+/, ''), shebang, body, "__END__\n:endofruby\n"].join.gsub(/$/, "\r") + [<<-"EOH".gsub(/^\s+/, ''), shebang, body, "__END__\n:endofruby\n"].join.gsub(/(?=\n)/, "\r") @echo off @if not "%~d0" == "~d0" goto WinNT #{ruby_bin} -x "#{cmd}" %1 %2 %3 %4 %5 %6 %7 %8 %9 |