Skip to content

Commit 6ffbd76

Browse files
committed
int - Rollout build script improvements
--- Type: int Breaking: False Doc Required: False Backport Required: False Part: 1/1
1 parent dab28ec commit 6ffbd76

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

vnd/vendor-clean.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
set ROOTDIR=%~dp0..
44

55
echo Cleaning up...
6-
for %%f in (bin, obj, docs) do forfiles /s /m %%f /p %ROOTDIR%\ /C "cmd /c echo @path && rd /s /q @path"
6+
for %%f in (bin, obj, docs) do forfiles /s /m %%f /p "%ROOTDIR%" /C "cmd /c echo @path && rd /s /q @path"

vnd/vendor-docgen.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set ROOTDIR=%~dp0\..
44

55
echo Finding DocFX...
6-
if exist %USERPROFILE%\.dotnet\tools\docfx.exe goto :build
6+
if exist "%USERPROFILE%\.dotnet\tools\docfx.exe" goto :build
77
echo You don't have DocFX installed. Download and install .NET and DocFX.
88
goto :finished
99

@@ -13,6 +13,6 @@ set DOTNET_CLI_TELEMETRY_OPTOUT=1
1313
set DOTNET_NOLOGO=1
1414

1515
echo Building the documentation...
16-
%USERPROFILE%\.dotnet\tools\docfx.exe "%ROOTDIR%\DocGen\docfx.json"
16+
"%USERPROFILE%\.dotnet\tools\docfx.exe" "%ROOTDIR%\DocGen\docfx.json"
1717

1818
:finished

vnd/vendor-docpack.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
set ROOTDIR=%~dp0\..
44

55
REM This script builds the documentation and packs the artifacts.
6-
for /f "tokens=*" %%g in ('findstr "<Version>" %ROOTDIR%\Directory.Build.props') do (set MIDVER=%%g)
6+
for /f "tokens=*" %%g in ('findstr "<Version>" "%ROOTDIR%\Directory.Build.props"') do (set MIDVER=%%g)
77
for /f "tokens=1 delims=<" %%a in ("%MIDVER:~9%") do (set version=%%a)
88

99
:pack
1010
echo Packing documentation...
11-
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-doc.zip "%ROOTDIR%\docs\*"
11+
"%ProgramFiles%\7-Zip\7z.exe" a -tzip "%temp%/%version%-doc.zip" "%ROOTDIR%\docs\*"
1212
if %errorlevel% == 0 goto :finalize
1313
echo There was an error trying to pack documentation (%errorlevel%).
1414
goto :finished
@@ -17,6 +17,6 @@ goto :finished
1717
rmdir /S /Q "%ROOTDIR%\DocGen\api\"
1818
rmdir /S /Q "%ROOTDIR%\DocGen\obj\"
1919
rmdir /S /Q "%ROOTDIR%\docs\"
20-
move %temp%\%version%-doc.zip %ROOTDIR%\tools\
20+
move "%temp%\%version%-doc.zip" "%ROOTDIR%\tools\"
2121

2222
:finished

vnd/vendor-push.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set ROOTDIR=%~dp0..
88

99
REM This script pushes.
1010
echo Pushing...
11-
forfiles /s /m *.nupkg /p %ROOTDIR%\ /C "cmd /c echo @path && dotnet nuget push @path --api-key %apikey% --source %source%"
11+
forfiles /s /m *.nupkg /p "%ROOTDIR%" /C "cmd /c echo @path && dotnet nuget push @path --api-key %apikey% --source %source%"
1212
if %errorlevel% == 0 goto :success
1313
echo There was an error trying to push (%errorlevel%).
1414
goto :finished

0 commit comments

Comments
 (0)