diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
commit | 4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch) | |
tree | 98110734c91668dfdbb126fcc0e15ddbd93738ca /publish-packages.sh | |
parent | fa45f57ed55137c75ac870356a1b8f76c84b229c (diff) | |
download | coreclr-upstream/1.1.0.tar.gz coreclr-upstream/1.1.0.tar.bz2 coreclr-upstream/1.1.0.zip |
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'publish-packages.sh')
-rwxr-xr-x | publish-packages.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/publish-packages.sh b/publish-packages.sh new file mode 100755 index 0000000000..8170419fb5 --- /dev/null +++ b/publish-packages.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +usage() +{ + echo "Publishes the NuGet packages to the specified location." + echo "For publishing to Azure the following properties are required." + echo " -AzureAccount=\"account name\"" + echo " -AzureToken=\"access token\"" + echo " -BuildType=\"Configuration\"" + echo " -BuildArch=\"Architecture\"" + echo "Configuration can be Release, Checked, or Debug" + echo "Architecture can be x64, x86, arm, or arm64" + exit 1 +} + +working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +$working_tree_root/run.sh publish-packages -BuildOS $* +if [ $? -ne 0 ] +then + echo "ERROR: An error occurred while publishing packages; see $working_tree_root/publish-packages.log for more details. There may have been networking problems, so please try again in a few minutes." + exit 1 +fi + +echo "Publish completed successfully." +exit 0
\ No newline at end of file |