X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=build-packages.sh;h=838f5bd7f328128dfed51b6895278f0943ad9b97;hb=101df105c3b94860d76b100dea1308a3ff371b11;hp=382e24db8ade73bae480a083f3bbb4a9a22ac8c4;hpb=4763f1121e62f45fec56cef6234446cd1ad7b8ab;p=platform%2Fupstream%2Fcoreclr.git diff --git a/build-packages.sh b/build-packages.sh index 382e24d..838f5bd 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -3,16 +3,43 @@ usage() { echo "Builds the NuGet packages from the binaries that were built in the Build product binaries step." - echo "Usage: build-packages -BuildArch -BuildType [-portable]" + echo "Usage: build-packages -BuildArch -BuildType" echo "BuildArch can be x64, x86, arm, arm64 (default is x64)" echo "BuildType can be release, checked, debug (default is debug)" - echo "-portable - build for Portable Distribution" 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=$(