diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-27 00:44:11 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-27 00:44:11 +0000 |
| commit | b93580b1b566f81757c4c14ced35c0c83e39759b (patch) | |
| tree | 2cba45c6c70f00b72a181c319ed5e980d31198fa /tool | |
| parent | 6b53632cf89f1f799c7055b318b9c2cab43891ca (diff) | |
| download | ruby-b93580b1b566f81757c4c14ced35c0c83e39759b.tar.gz ruby-b93580b1b566f81757c4c14ced35c0c83e39759b.tar.xz ruby-b93580b1b566f81757c4c14ced35c0c83e39759b.zip | |
* tool/rbinstall.rb (install?(:local, :comm, :bin, :'bin-comm')):
Makes it vim friendly. __END__ in a heredoc is confusing with
the script end for vim.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
| -rwxr-xr-x | tool/rbinstall.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 4263cdace..cf5827e6e 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -424,18 +424,18 @@ install?(:local, :comm, :bin, :'bin-comm') do open_for_install(cmd, $script_mode) do case $cmdtype when "bat" - "#{<<EOH}#{shebang}#{body}#{<<EOF}".gsub(/$/, "\r") -@echo off -@if not "%~d0" == "~d0" goto WinNT -#{ruby_bin} -x "#{cmd}" %1 %2 %3 %4 %5 %6 %7 %8 %9 -@goto endofruby -:WinNT -"%~dp0#{ruby_install_name}" -x "%~f0" %* -@goto endofruby -EOH -__END__ -:endofruby -EOF + [<<-"EOH".gsub(/^\s+/, ''), shebang, body, <<-"EOF".gsub(/^\s+/, '')].join.gsub(/$/, "\r") + @echo off + @if not "%~d0" == "~d0" goto WinNT + #{ruby_bin} -x "#{cmd}" %1 %2 %3 %4 %5 %6 %7 %8 %9 + @goto endofruby + :WinNT + "%~dp0#{ruby_install_name}" -x "%~f0" %* + @goto endofruby + EOH + __END__ + :endofruby + EOF when "cmd" "#{<<"/EOH"}#{shebang}#{body}" @"%~dp0#{ruby_install_name}" -x "%~f0" %* |
