forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix .cmd scripts help arguments (dotnet#1131)
- Loading branch information
Showing
5 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
@echo off | ||
setlocal | ||
|
||
if "%~1"=="-h" goto help | ||
if "%~1"=="-help" goto help | ||
if "%~1"=="-?" goto help | ||
if "%~1"=="/?" goto help | ||
set _args=%* | ||
if "%~1"=="-?" set _args=-help | ||
|
||
powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %* | ||
goto end | ||
|
||
:help | ||
powershell -ExecutionPolicy ByPass -NoProfile -Command "& { . '%~dp0eng\build.ps1'; Get-Help }" | ||
|
||
:end | ||
powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %_args% | ||
exit /b %ERRORLEVEL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
@echo off | ||
"%~dp0build.cmd" -subsetCategory coreclr %* | ||
setlocal | ||
|
||
set _args=-subsetCategory coreclr %* | ||
if "%~1"=="-?" set _args=-help | ||
|
||
"%~dp0build.cmd" %_args% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
@echo off | ||
"%~dp0build.cmd" -subsetCategory installer %* | ||
setlocal | ||
|
||
set _args=-subsetCategory installer %* | ||
if "%~1"=="-?" set _args=-help | ||
|
||
"%~dp0build.cmd" %_args% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
@echo off | ||
"%~dp0build.cmd" -subsetCategory libraries %* | ||
setlocal | ||
|
||
set _args=-subsetCategory libraries %* | ||
if "%~1"=="-?" set _args=-help | ||
|
||
"%~dp0build.cmd" %_args% |