script/ml.cmd
raw| 1 | @echo off |
| 2 | |
| 3 | :: initialize Modules if not already done |
| 4 | if not defined MODULES_CMD ( |
| 5 | call "%~dp0..\init\cmd.cmd" |
| 6 | ) |
| 7 | |
| 8 | set OUTPUT= |
| 9 | :: execute each output line in cmd shell |
| 10 | for /f "tokens=*" %%I in ('call tclsh "%MODULES_CMD%" cmd ml %*') do %%I |
| 11 | |
| 12 | :: quit with error code produced by modulecmd |
| 13 | if %errorlevel% NEQ 0 (exit /b %errorlevel%) |