Bump version numbers to 6.2.0
[scilab.git] / scilab / bin / scilab.bat
1 @echo off
2 SETLOCAL ENABLEEXTENSIONS
3 SET PARENT=%~dp0
4 SET "START_CALL=start "Scilab" "
5 set BIN=WScilex.exe
6
7 :Argloop
8 SET CURRENT_ARG=%~1
9 rem echo arg %CURRENT_ARG%
10
11 IF "%CURRENT_ARG%"=="-nw" (
12         SET BIN=WScilex-cli.exe
13     SET START_CALL=
14         goto next
15 )
16
17 IF "%CURRENT_ARG%"=="-nwni" (
18         SET BIN=Scilex.exe
19     SET START_CALL=
20         goto next
21 )
22
23 IF "%CURRENT_ARG%"=="-nogui" (
24         SET BIN=Scilex.exe
25     SET START_CALL=
26         goto next
27 )
28
29 IF "%CURRENT_ARG%"=="--help" (
30     %PARENT%Scilex.exe --help
31     goto quit
32 )
33
34 set ArgsExceptFirst=%ArgsExceptFirst% %1%
35
36 :next
37 shift
38
39 if not "%CURRENT_ARG%"=="" goto Argloop
40
41 rem echo.%START_CALL%"%PARENT%%BIN%"%ArgsExceptFirst%
42 %START_CALL%"%PARENT%%BIN%"%ArgsExceptFirst%
43
44 :quit
45 EXIT /B %ERRORLEVEL%