diff options
author | Shashank | 2017-05-29 12:40:26 +0530 |
---|---|---|
committer | Shashank | 2017-05-29 12:40:26 +0530 |
commit | 0345245e860375a32c9a437c4a9d9cae807134e9 (patch) | |
tree | ad51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /bin/scinotes.bat | |
download | scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2 scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip |
CMSCOPE changed
Diffstat (limited to 'bin/scinotes.bat')
-rwxr-xr-x | bin/scinotes.bat | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/bin/scinotes.bat b/bin/scinotes.bat new file mode 100755 index 000000000..22b695928 --- /dev/null +++ b/bin/scinotes.bat @@ -0,0 +1,52 @@ +@ECHO OFF +SETLOCAL ENABLEEXTENSIONS +SET argC=0 +SET bIndent=0 +SET "argList=[" +SET "cmd1=WScilex -e" +FOR %%x IN (%*) DO Set /A argC+=1 + + +IF %argC% EQU 0 ( + START %cmd1% scinotes + EXIT /B +) + +FOR %%x IN (%*) DO ( + IF %%x == -indent ( + SET bIndent=1 + ) ELSE ( + call :strcat %%x + ) +) + +set "argList=%argList% ]" + +IF %argC% EQU 1 ( + IF %bIndent% == 1 ( + goto :Syntax + ) +) + +IF %bIndent% EQU 1 ( + START %cmd1% "scinotes(%argList%, ['indent','trailing','quote']);exit();" +) else ( + START %cmd1% "scinotes(%argList%);" +) + + +EXIT /B + + +:Syntax +ECHO Start Scinotes, the Scilab text editor +ECHO Usage: +ECHO scinotes [ file1.sci, [ file2.sce ]] +ECHO. +ECHO Possible arguments are: +ECHO -indent : format (indent, trailing spaces, quote mismatch) the files +EXIT /B + +:strcat +set "argList=%argList% '%1', " +goto :eof |