Skip to content

Commit eae9e2b

Browse files
committed
Clean up existing batch files to point at .exe
1 parent cfd0684 commit eae9e2b

13 files changed

Lines changed: 49 additions & 395 deletions

bin/_jrubycleanup.bat

Lines changed: 0 additions & 20 deletions
This file was deleted.

bin/_jrubyvars.bat

Lines changed: 0 additions & 81 deletions
This file was deleted.

bin/_jrubyvmopts.bat

Lines changed: 0 additions & 196 deletions
This file was deleted.

bin/gem.bat

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@ECHO OFF
2-
IF NOT "%~f0" == "~f0" GOTO :WinNT
3-
@"jruby.bat" -S "gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
4-
GOTO :EOF
5-
:WinNT
6-
@"jruby.bat" "%~dpn0" %*
1+
@ECHO OFF
2+
IF NOT "%~f0" == "~f0" GOTO :WinNT
3+
@"jruby" -S "gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
4+
GOTO :EOF
5+
:WinNT
6+
@"jruby" "%~dpn0" %*

bin/jirb.bat

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@ECHO OFF
2-
IF NOT "%~f0" == "~f0" GOTO :WinNT
3-
@"jruby.bat" -S "jirb" %1 %2 %3 %4 %5 %6 %7 %8 %9
4-
GOTO :EOF
5-
:WinNT
6-
@"jruby.bat" "%~dpn0" %*
1+
@ECHO OFF
2+
IF NOT "%~f0" == "~f0" GOTO :WinNT
3+
@"jruby" -S "jirb" %1 %2 %3 %4 %5 %6 %7 %8 %9
4+
GOTO :EOF
5+
:WinNT
6+
@"jruby" "%~dpn0" %*

bin/jirb_swing.bat

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@ECHO OFF
2-
IF NOT "%~f0" == "~f0" GOTO :WinNT
3-
@"jruby.bat" -S "jirb_swing" %1 %2 %3 %4 %5 %6 %7 %8 %9
4-
GOTO :EOF
5-
:WinNT
6-
@"jruby.bat" "%~dpn0" %*
1+
@ECHO OFF
2+
IF NOT "%~f0" == "~f0" GOTO :WinNT
3+
@"jruby" -S "jirb_swing" %1 %2 %3 %4 %5 %6 %7 %8 %9
4+
GOTO :EOF
5+
:WinNT
6+
@"jruby" "%~dpn0" %*

bin/jruby.bat

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,6 @@
1-
@echo off
2-
rem ---------------------------------------------------------------------------
3-
rem jruby.bat - Start Script for the JRuby Interpreter
4-
rem
5-
rem for info on environment variables, see internal batch script _jrubyvars.bat
6-
7-
setlocal EnableDelayedExpansion
8-
9-
rem Sometimes, when jruby.bat is being invoked from another BAT file,
10-
rem %~dp0 is incorrect and points to the current dir, not to JRuby's bin dir,
11-
rem so we look on the PATH in such cases.
12-
IF EXIST "%~dp0_jrubyvars.bat" (set FULL_PATH=%~dp0) ELSE (set FULL_PATH=%~dp$PATH:0)
13-
14-
set _FULL_ARGS=%*
15-
call "%FULL_PATH%_jrubyvars.bat" %%_FULL_ARGS%%
16-
17-
if not "%CP%" == "" (
18-
set CLASSPATH = ""
19-
)
20-
21-
if %JRUBY_BAT_ERROR%==0 (
22-
if "%_NAILGUN_CLIENT%" == "" (
23-
"%_STARTJAVA%" %_VM_OPTS% %_JRUBY_BOOTCP_OPTS% -classpath "%CP%;%CLASSPATH%" -Djruby.home="%JRUBY_HOME%" -Djruby.lib="%JRUBY_HOME%\lib" -Djruby.shell="cmd.exe" -Djruby.script=jruby.bat %_JAVA_CLASS% %JRUBY_OPTS% %_RUBY_OPTS%
24-
) else (
25-
"%JRUBY_HOME%\tool\nailgun\ng.exe" org.jruby.util.NailMain %JRUBY_OPTS% %_RUBY_OPTS%
26-
)
27-
)
28-
set E=%ERRORLEVEL%
29-
30-
call "%FULL_PATH%_jrubycleanup"
31-
32-
rem 1. exit must be on the same line in order to see local %E% variable!
33-
rem 2. we must use cmd /c in order for the exit code properly returned!
34-
rem See JRUBY-2094 for more details.
35-
endlocal & cmd /d /c exit /b %E%
1+
@ECHO OFF
2+
IF NOT "%~f0" == "~f0" GOTO :WinNT
3+
@"jruby.exe" -S "gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
4+
GOTO :EOF
5+
:WinNT
6+
@"jruby.exe" "%~dpn0" %*

bin/jruby.dll

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)