Merge pull request #9155 from dotnet/revert-9152-SpeedUpSync
[platform/upstream/coreclr.git] / sync.cmd
1 @if not defined _echo @echo off
2 setlocal EnableDelayedExpansion
3
4 if /I [%1] == [-?] goto Usage
5 if /I [%1] == [-help] goto Usage
6
7 @if [%1]==[] set __args=-p
8
9  @call %~dp0run.cmd sync %__args% %*
10  @call %~dp0run.cmd sync -PublishTestNativeBins %__args% %*
11 @exit /b %ERRORLEVEL%
12
13 :Usage
14 echo.
15 echo Repository syncing script.
16 echo.
17 echo Options:
18 echo     -?     - Prints Usage
19 echo     -help  - Prints Usage
20 echo     -p     - Restores all nuget packages for repository
21 echo     -ab    - Downloads the latests product packages from Azure.
22 echo              The following properties are required:
23 echo                 -AzureAccount="Account name"
24 echo                 -AzureToken="Access token"
25 echo              To download a specific group of product packages, specify:
26 echo                 -BuildMajor
27 echo                 -BuildMinor
28 echo              To download from a specific container, specify:
29 echo                 -Container="container name"
30 echo.
31 echo.
32 echo If no option is specified then sync.cmd -p is implied.