Skip to content
This repository
Newer
Older
100644 18 lines (18 sloc) 0.616 kb
afdd01ca »
2008-08-22 #1 Initial commit
1 @echo off
2 if "%RUBY%"=="" if exist C:\ruby186\bin\ruby.exe set RUBY=C:\ruby186\bin\ruby.exe
3 if "%RUBY%"=="" if exist C:\ruby185\bin\ruby.exe set RUBY=C:\ruby185\bin\ruby.exe
4 if "%RUBY%"=="" set RUBY=C:\ruby\bin\ruby.exe
5 if "%SCRIPTS%"=="" set SCRIPTS=C:\scripts
6 set RUBYFILE=%SCRIPTS%\%0.rb
7 if "%RUBYLOG%"=="" set RUBYLOG=CON
8 if exist "%RUBY%" goto execute
9 echo ruby not found.
10 goto endofruby
11 :execute
12 if "%OS%" == "Windows_NT" goto WinNT
13 "%RUBY%" -Sx "%RUBYFILE%" %1 %2 %3 %4 %5 %6 %7 %8 %9 >> "%RUBYLOG%"
14 goto endofruby
15 :WinNT
16 "%RUBY%" -x "%RUBYFILE%" %* >> "%RUBYLOG%"
17 goto endofruby
18 :endofruby
Something went wrong with that request. Please try again.