ruby-changes:37375
From: nobu <ko1@a...>
Date: Sat, 31 Jan 2015 17:42:35 +0900 (JST)
Subject: [ruby-changes:37375] nobu:r49456 (trunk): rbinstall.rb: no CR
nobu 2015-01-31 17:42:25 +0900 (Sat, 31 Jan 2015) New Revision: 49456 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49456 Log: rbinstall.rb: no CR * tool/rbinstall.rb (bin-comm): no CR at EOF in batch files. Modified files: trunk/tool/rbinstall.rb Index: tool/rbinstall.rb =================================================================== --- tool/rbinstall.rb (revision 49455) +++ tool/rbinstall.rb (revision 49456) @@ -490,7 +490,7 @@ install?(:local, :comm, :bin, :'bin-comm https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L490 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/