Skip to content

Commit

Permalink
Standardize on _echo name (dotnet#7532)
Browse files Browse the repository at this point in the history
  • Loading branch information
vancem authored and jkotas committed Oct 8, 2016
1 parent 4170428 commit 5f2aa3a
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion build-packages.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if "%_echo%" neq "on" echo off
@if not defined _echo @echo off
setlocal EnableDelayedExpansion

set "__ProjectDir=%~dp0"
Expand Down
6 changes: 3 additions & 3 deletions build-test.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if not defined __echo @echo off
@if not defined _echo @echo off
setlocal EnableDelayedExpansion

:: Set the default arguments for build
Expand Down Expand Up @@ -129,7 +129,7 @@ if defined __ToolsetDir (
:: Set the environment for the native build
echo %__MsgPrefix%Using environment: "%__VSToolsRoot%\..\..\VC\vcvarsall.bat" %__VCBuildArch%
call "%__VSToolsRoot%\..\..\VC\vcvarsall.bat" %__VCBuildArch%
@if defined __echo @echo on
@if defined _echo @echo on

if not defined VSINSTALLDIR (
echo %__MsgPrefix%Error: VSINSTALLDIR variable not defined.
Expand All @@ -141,7 +141,7 @@ if not exist "%VSINSTALLDIR%DIA SDK" goto NoDIA

pushd "%__NativeTestIntermediatesDir%"
call "%__SourceDir%\pal\tools\gen-buildsys-win.bat" ""%__ProjectFilesDir%"" %__VSVersion% %__BuildArch%
@if defined __echo @echo on
@if defined _echo @echo on
popd

if not exist "%__NativeTestIntermediatesDir%\install.vcxproj" (
Expand Down
10 changes: 5 additions & 5 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if not defined __echo @echo off
@if not defined _echo @echo off
setlocal EnableDelayedExpansion EnableExtensions

set __ThisScriptFull="%~f0"
Expand Down Expand Up @@ -224,7 +224,7 @@ if %__BuildNative% EQU 1 (
if /i "%__BuildArch%" == "arm" (set __VCBuildArch=x86_arm)
echo %__MsgPrefix%Using environment: "%__VSToolsRoot%\..\..\VC\vcvarsall.bat" !__VCBuildArch!
call "%__VSToolsRoot%\..\..\VC\vcvarsall.bat" !__VCBuildArch!
@if defined __echo @echo on
@if defined _echo @echo on

if not defined VSINSTALLDIR (
echo %__MsgPrefix%Error: VSINSTALLDIR variable not defined.
Expand All @@ -239,7 +239,7 @@ if %__BuildNative% EQU 1 (
pushd "%__IntermediatesDir%"
set __ExtraCmakeArgs="-DCLR_CMAKE_TARGET_OS=%__BuildOs%" "-DCLR_CMAKE_PACKAGES_DIR=%__PackagesDir%" "-DCLR_CMAKE_PGO_INSTRUMENT=%__PgoInstrument%"
call "%__SourceDir%\pal\tools\gen-buildsys-win.bat" "%__ProjectDir%" %__VSVersion% %__BuildArch% %__BuildJit32% !__ExtraCmakeArgs!
@if defined __echo @echo on
@if defined _echo @echo on
popd
:SkipConfigure
if defined __ConfigureOnly goto SkipNativeBuild
Expand Down Expand Up @@ -283,7 +283,7 @@ if /i "%__DoCrossArchBuild%"=="1" (
set __VCBuildArch=x86_amd64
if /i "%__CrossArch%" == "x86" ( set __VCBuildArch=x86 )
@call "%__VSToolsRoot%\..\..\VC\vcvarsall.bat" !__VCBuildArch!
@if defined __echo @echo on
@if defined _echo @echo on

if not exist "%__CrossCompIntermediatesDir%" md "%__CrossCompIntermediatesDir%"
if defined __SkipConfigure goto SkipConfigureCrossBuild
Expand All @@ -293,7 +293,7 @@ if /i "%__DoCrossArchBuild%"=="1" (
set "__CMakeBinDir=!__CMakeBinDir:\=/!"
set __ExtraCmakeArgs="-DCLR_CROSS_COMPONENTS_BUILD=1" "-DCLR_CMAKE_TARGET_ARCH=%__BuildArch%" "-DCLR_CMAKE_TARGET_OS=%__BuildOs%" "-DCLR_CMAKE_PACKAGES_DIR=%__PackagesDir%" "-DCLR_CMAKE_PGO_INSTRUMENT=%__PgoInstrument%"
call "%__SourceDir%\pal\tools\gen-buildsys-win.bat" "%__ProjectDir%" %__VSVersion% %__CrossArch% !__ExtraCmakeArgs!
@if defined __echo @echo on
@if defined _echo @echo on
popd
:SkipConfigureCrossBuild
if not exist "%__CrossCompIntermediatesDir%\install.vcxproj" (
Expand Down
2 changes: 1 addition & 1 deletion clean.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if not defined __echo @echo off
@if not defined _echo @echo off
setlocal EnableDelayedExpansion

echo Running clean.cmd
Expand Down
2 changes: 1 addition & 1 deletion init-tools.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off
@if not defined _echo @echo off
setlocal

set INIT_TOOLS_LOG=%~dp0init-tools.log
Expand Down
2 changes: 1 addition & 1 deletion publish-packages.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if "%_echo%" neq "on" echo off
@if not defined _echo @echo off
setlocal EnableDelayedExpansion

if /I [%1] == [-?] goto Usage
Expand Down
2 changes: 1 addition & 1 deletion run.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if "%_echo%" neq "on" echo off
@if not defined _echo @echo off
setlocal

if not defined VisualStudioVersion (
Expand Down
2 changes: 1 addition & 1 deletion sync.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if "%_echo%" neq "on" echo off
@if not defined _echo @echo off
setlocal EnableDelayedExpansion

if /I [%1] == [-?] goto Usage
Expand Down
2 changes: 1 addition & 1 deletion tests/runtest.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if not defined __echo @echo off
@if not defined _echo @echo off
setlocal EnableDelayedExpansion

:: Set the default arguments
Expand Down
2 changes: 1 addition & 1 deletion tests/setup-runtime-dependencies.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if not defined __echo @echo off
@if not defined _echo @echo off
setlocal

set __ThisScriptShort=%0
Expand Down

0 comments on commit 5f2aa3a

Please sign in to comment.