@echo off setlocal DisableDelayedExpansion if "%~1"=="" goto usage if "%~2"=="" goto usage if not "%~3"=="" goto usage if not exist "%~1\." ( echo [firmware-build] Project directory not found: "%~1" 1>&2 exit /b 2 ) powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0..\..\..\c\firmware-info\tools\make_build_id.ps1" -Repository "%~f1" -Output "%~f2" exit /b %errorlevel% :usage echo Usage: precompile.bat "project-root" "output-header" 1>&2 exit /b 2