Skip to content

Commit 669d616

Browse files
vancemjkotas
authored andcommitted
Fix _echo to be uniform (_echo just needs to be defined for it to be on). (dotnet#12475)
1 parent 19c56af commit 669d616

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

build.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@if "%_echo%" neq "on" echo off
1+
@if not defined _echo @echo off
22
setlocal
33

44
if /I [%1] == [-?] goto Usage
@@ -23,4 +23,4 @@ echo For more information: "https://github.com/dotnet/corefx/blob/master/Documen
2323
echo ----------------------------------------------------------------------------
2424
echo.
2525
echo.
26-
goto :Build
26+
goto :Build

clean.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@if "%_echo%" neq "on" echo off
1+
@if not defined _echo @echo off
22
setlocal EnableDelayedExpansion
33

44
echo Stop VBCSCompiler.exe execution.
@@ -31,4 +31,4 @@ echo -all - Combines all of the above.
3131
echo.
3232
echo If no option is specified then clean.cmd -b is implied.
3333

34-
exit /b 1
34+
exit /b 1

init-tools.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@if "%_echo%" neq "on" echo off
1+
@if not defined _echo @echo off
22
setlocal
33

44
set INIT_TOOLS_LOG=%~dp0init-tools.log
@@ -80,4 +80,4 @@ if %UPDATE_CLI_ERRORLEVEL% GTR 1 (
8080
:: Create sempahore file
8181
echo Done initializing tools.
8282
echo Init-Tools.cmd completed for BuildTools Version: %BUILDTOOLS_VERSION% > "%BUILD_TOOLS_SEMAPHORE%"
83-
exit /b 0
83+
exit /b 0

run-test.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@if "%_echo%" neq "on" echo off
1+
@if not defined _echo @echo off
22

33
:: To run tests outside of MSBuild.exe
44
:: %1 is the path to the tests\<OSConfig> folder

run.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@if "%_echo%" neq "on" echo off
1+
@if not defined _echo @echo off
22
setlocal
33

44
if not defined VisualStudioVersion (
@@ -24,4 +24,4 @@ set _toolRuntime=%~dp0Tools
2424
set _dotnet=%_toolRuntime%\dotnetcli\dotnet.exe
2525

2626
call %_dotnet% %_toolRuntime%\run.exe %*
27-
exit /b %ERRORLEVEL%
27+
exit /b %ERRORLEVEL%

src/Native/build-native.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@if "%_echo%" neq "on" echo off
1+
@if not defined _echo @echo off
22
setlocal
33

44
:SetupArgs

0 commit comments

Comments
 (0)