X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=build-packages.sh;h=838f5bd7f328128dfed51b6895278f0943ad9b97;hb=101df105c3b94860d76b100dea1308a3ff371b11;hp=5e03ac294b03b58abe7161e6a97df35c7c33a8e9;hpb=2761706bae3dda8c3375a1c67f93b274f8d3f322;p=platform%2Fupstream%2Fcoreclr.git diff --git a/build-packages.sh b/build-packages.sh index 5e03ac2..838f5bd 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -4,13 +4,82 @@ usage() { echo "Builds the NuGet packages from the binaries that were built in the Build product binaries step." echo "Usage: build-packages -BuildArch -BuildType" - echo "arch can be x64, x86, arm, arm64 (default is x64)" - echo "configuration can be release, checked, debug (default is debug)" + echo "BuildArch can be x64, x86, arm, arm64 (default is x64)" + echo "BuildType can be release, checked, debug (default is debug)" echo exit 1 } +initHostDistroRid() +{ + __HostDistroRid="" + if [ "$__HostOS" == "Linux" ]; then + if [ -e /etc/os-release ]; then + source /etc/os-release + if [[ $ID == "alpine" || $ID == "rhel" ]]; then + # remove the last version digit + VERSION_ID=${VERSION_ID%.*} + fi + __HostDistroRid="$ID.$VERSION_ID-$__Arch" + elif [ -e /etc/redhat-release ]; then + local redhatRelease=$(