summaryrefslogtreecommitdiff
path: root/build-packages.sh
diff options
context:
space:
mode:
authorGaurav Khanna <gkhanna@microsoft.com>2017-05-31 15:53:47 (GMT)
committerGitHub <noreply@github.com>2017-05-31 15:53:47 (GMT)
commita2abadfe7f67249cbe2b107d0b3f1b8d6f2ee06b (patch)
tree3aab3e9d572aec4f1f174ca1bb10ba7ccd2b0a40 /build-packages.sh
parent3530e3f5751f4b0e12b8f45bf7fe2a2a309cfebb (diff)
downloadcoreclr-a2abadfe7f67249cbe2b107d0b3f1b8d6f2ee06b.zip
coreclr-a2abadfe7f67249cbe2b107d0b3f1b8d6f2ee06b.tar.gz
coreclr-a2abadfe7f67249cbe2b107d0b3f1b8d6f2ee06b.tar.bz2
Default to portable build in dev and official builds (#11985)
Diffstat (limited to 'build-packages.sh')
-rwxr-xr-xbuild-packages.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/build-packages.sh b/build-packages.sh
index 382e24d..a418464 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