050d869e03bf18d7615b83d2fc8c535017e6f4ef
[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 @exit /b %ERRORLEVEL%
11
12 :Usage
13 echo.
14 echo Repository syncing script.
15 echo.
16 echo Options:
17 echo     -?     - Prints Usage
18 echo     -help  - Prints Usage
19 echo     -p     - Restores all nuget packages for repository
20 echo     -ab    - Downloads the latests product packages from Azure.
21 echo              The following properties are required:
22 echo                 -AzureAccount="Account name"
23 echo                 -AzureToken="Access token"
24 echo              To download a specific group of product packages, specify:
25 echo                 -BuildMajor
26 echo                 -BuildMinor
27 echo.
28 echo.
29 echo If no option is specified then sync.cmd -p is implied.