Files
swift-mirror/utils/build.cmd
Alexander Smarus 065ebc4a86 utils: adjust build.ps1 help invocation in helper launcher
As the helper script could (and probably always would) be launched from
a directory outside of the source tree, it is convenient to use an absolute path
in Get-Help invocation, just like we do in the `build.ps1` invocation below.
Also, quoting might be necessary for paths with spaces.
2023-11-07 16:09:36 +02:00

10 lines
202 B
Batchfile

@echo off
setlocal
if "%1"=="/?" (
powershell.exe -Command "& Get-Help -Detailed ""%~dp0\build.ps1"""
exit /b
)
powershell.exe -ExecutionPolicy RemoteSigned -File "%~dp0\build.ps1" %*
endlocal