11cb0ef41Sopenharmony_ci@echo off 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ciSET tools_dir=%~dp0 41cb0ef41Sopenharmony_ciIF 1%D8_PATH% == 1 (SET D8_PATH=%tools_dir%..) 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciSET log_file=v8.log 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_cirem find the name of the log file to process, it must not start with a dash. 91cb0ef41Sopenharmony_cirem we prepend cmdline args with a number (in fact, any letter or number) 101cb0ef41Sopenharmony_cirem to cope with empty arguments. 111cb0ef41Sopenharmony_ciSET arg1=1%1 121cb0ef41Sopenharmony_ciIF NOT %arg1:~0,2% == 1 (IF NOT %arg1:~0,2% == 1- SET log_file=%1) 131cb0ef41Sopenharmony_ciSET arg2=2%2 141cb0ef41Sopenharmony_ciIF NOT %arg2:~0,2% == 2 (IF NOT %arg2:~0,2% == 2- SET log_file=%2) 151cb0ef41Sopenharmony_ciSET arg3=3%3 161cb0ef41Sopenharmony_ciIF NOT %arg3:~0,2% == 3 (IF NOT %arg3:~0,2% == 3- SET log_file=%3) 171cb0ef41Sopenharmony_ciSET arg4=4%4 181cb0ef41Sopenharmony_ciIF NOT %arg4:~0,2% == 4 (IF NOT %arg4:~0,2% == 4- SET log_file=%4) 191cb0ef41Sopenharmony_ciSET arg5=5%5 201cb0ef41Sopenharmony_ciIF NOT %arg5:~0,2% == 5 (IF NOT %arg5:~0,2% == 5- SET log_file=%5) 211cb0ef41Sopenharmony_ciSET arg6=6%6 221cb0ef41Sopenharmony_ciIF NOT %arg6:~0,2% == 6 (IF NOT %arg6:~0,2% == 6- SET log_file=%6) 231cb0ef41Sopenharmony_ciSET arg7=7%7 241cb0ef41Sopenharmony_ciIF NOT %arg7:~0,2% == 7 (IF NOT %arg7:~0,2% == 7- SET log_file=%7) 251cb0ef41Sopenharmony_ciSET arg8=8%8 261cb0ef41Sopenharmony_ciIF NOT %arg8:~0,2% == 8 (IF NOT %arg8:~0,2% == 8- SET log_file=%8) 271cb0ef41Sopenharmony_ciSET arg9=9%9 281cb0ef41Sopenharmony_ciIF NOT %arg9:~0,2% == 9 (IF NOT %arg9:~0,2% == 9- SET log_file=%9) 291cb0ef41Sopenharmony_ci 301cb0ef41Sopenharmony_citype %log_file% | %D8_PATH%\d8 --module %tools_dir%tickprocessor-driver.mjs -- --windows %* 31