Add the missing ICU APIs to the ICU shim (#7840)
[platform/upstream/coreclr.git] / publish-packages.sh
1 #!/usr/bin/env bash
2
3 usage()
4 {
5     echo "Publishes the NuGet packages to the specified location."
6     echo "For publishing to Azure the following properties are required."
7     echo "   -AzureAccount=\"account name\""
8     echo "   -AzureToken=\"access token\""
9     echo "   -BuildType=\"Configuration\""
10     echo "   -BuildArch=\"Architecture\""
11     echo "To specify the name of the container to publish into, use the following property:"
12     echo "   -Container=\"container name\""
13     echo "Configuration can be Release, Checked, or Debug"
14     echo "Architecture can be x64, x86, arm, or arm64"
15     exit 1
16 }
17
18 working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
19
20 $working_tree_root/run.sh publish-packages -BuildOS $*
21 $working_tree_root/run.sh publish-packages -BuildOS -distroRid -PublishTestNativeBins $*
22 if [ $? -ne 0 ]
23 then
24     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."
25     exit 1
26 fi
27
28 echo "Publish completed successfully."
29 exit 0