14 lines
428 B
Batchfile
14 lines
428 B
Batchfile
@ECHO OFF
|
|
|
|
REM Prepare the environment for ZX and launch it
|
|
|
|
set ZOMP_DIR="%LOCALAPPDATA%\zomp"
|
|
set ZOMP_DIR=%ZOMP_DIR:"=%
|
|
set /P ZX_VERSION=<"%ZOMP_DIR%\etc\version.txt"
|
|
set ZX_DIR=%ZOMP_DIR%\lib\otpr\zx\%ZX_VERSION%
|
|
set ZX_DIR=%ZX_DIR:"=%
|
|
pushd "%ZX_DIR%"
|
|
if not exist ebin\zx.erl "C:\Program Files\erl10.6\bin\escript.exe" make_zx
|
|
popd
|
|
"C:\Program Files\erl10.6\bin\erl.exe" -noshell -pa "%ZX_DIR%/ebin" -run zx do -extra %*
|