mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
10 lines
202 B
Batchfile
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
|