diff options
author | Gaurav Khanna <gkhanna@microsoft.com> | 2017-05-31 08:53:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-31 08:53:47 -0700 |
commit | a2abadfe7f67249cbe2b107d0b3f1b8d6f2ee06b (patch) | |
tree | 3aab3e9d572aec4f1f174ca1bb10ba7ccd2b0a40 /build-packages.sh | |
parent | 3530e3f5751f4b0e12b8f45bf7fe2a2a309cfebb (diff) | |
download | coreclr-a2abadfe7f67249cbe2b107d0b3f1b8d6f2ee06b.tar.gz coreclr-a2abadfe7f67249cbe2b107d0b3f1b8d6f2ee06b.tar.bz2 coreclr-a2abadfe7f67249cbe2b107d0b3f1b8d6f2ee06b.zip |
Default to portable build in dev and official builds (#11985)
Diffstat (limited to 'build-packages.sh')
-rwxr-xr-x | build-packages.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build-packages.sh b/build-packages.sh index 382e24db8a..a4184646d5 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -3,16 +3,15 @@ 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 } __ProjectRoot="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -__PortableBuild=0 +__IsPortableBuild=1 # Use uname to determine what the OS is. OSName=$(uname -s) @@ -71,8 +70,9 @@ while :; do __Arch=$(echo $1| cut -d'=' -f 2) ;; - -portableBuild) - __PortableBuild=1 + -PortableBuild=false) + unprocessedBuildArgs="$unprocessedBuildArgs $1" + __IsPortableBuild=0 ;; *) unprocessedBuildArgs="$unprocessedBuildArgs $1" @@ -81,7 +81,7 @@ while :; do done # Portable builds target the base RID -if [ $__PortableBuild == 1 ]; then +if [ $__IsPortableBuild == 1 ]; then if [ "$__BuildOS" == "Linux" ]; then export __DistroRid="linux-$__Arch" elif [ "$__BuildOS" == "OSX" ]; then |