X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=publish-packages.cmd;h=3dd89ceecf4f5a687d08fe1ee4bcb6b0d5c90bff;hb=3d7bcd205d6ea0ddb185a53b28ff497c9265c771;hp=760452a1281244782392b603bc6f05e8953bf748;hpb=409c6cba761306b352e9eee7505ce55cf762b330;p=platform%2Fupstream%2Fcoreclr.git diff --git a/publish-packages.cmd b/publish-packages.cmd index 760452a..3dd89ce 100644 --- a/publish-packages.cmd +++ b/publish-packages.cmd @@ -1,37 +1,28 @@ -@if "%_echo%" neq "on" echo off +@if not defined _echo @echo off setlocal EnableDelayedExpansion -set packagesLog=publish-packages.log -echo Running publish-packages.cmd %* > %packagesLog% +if /I [%1] == [-?] goto Usage +if /I [%1] == [-help] goto Usage -set options=/nologo /v:minimal /flp:v=detailed;Append;LogFile=%packagesLog% -set allargs=%* - -if /I [%1] == [/?] goto Usage -if /I [%1] == [/help] goto Usage - -REM ensure that msbuild is available -echo Running init-tools.cmd -call %~dp0init-tools.cmd - -echo msbuild.exe %~dp0src\publish.proj !options! !allargs! >> %packagesLog% -call msbuild.exe %~dp0src\publish.proj !options! !allargs! -if NOT [%ERRORLEVEL%]==[0] ( - echo ERROR: An error occurred while publishing packages, see %packagesLog% for more details. - exit /b 1 -) - -echo Done publishing packages. -exit /b +echo %~dp0run.cmd publish-packages %* +call %~dp0run.cmd publish-packages %* +@exit /b %ERRORLEVEL% :Usage echo. echo Publishes the NuGet packages to the specified location. +echo -? - Prints Usage +echo -help - Prints Usage echo For publishing to Azure the following properties are required. -echo /p:CloudDropAccountName="account name" -echo /p:CloudDropAccessToken="access token" -echo /p:__BuildType="Configuration" -echo /p:__BuildArch="Architecture" +echo -AzureAccount="account name" +echo -AzureToken="access token" +echo -BuildType="Configuration" +echo -BuildArch="Architecture" +echo For publishing to Azure, one of the following properties is required. +echo -PublishPackages Pass this switch to publish product packages +echo -PublishSymbols Pass this switch to publish symbol packages +echo To specify the name of the container to publish into, use the following property: +echo -Container="container name" echo Architecture can be x64, x86, arm, or arm64 echo Configuration can be Release, Debug, or Checked exit /b \ No newline at end of file