Reverting the change to run-build.sh to handle additional parameters. I don't want to hold this PR for that work. having CI running is more important.

This commit is contained in:
Livar Cunha 2016-07-06 16:52:58 -07:00
parent 5d40e8b734
commit ffe995fbab

View file

@ -22,24 +22,19 @@ source "$REPOROOT/scripts/common/_prettyprint.sh"
# Set nuget package cache under the repo # Set nuget package cache under the repo
export NUGET_PACKAGES="$REPOROOT/.nuget/packages" export NUGET_PACKAGES="$REPOROOT/.nuget/packages"
args=( "$0" )
while [[ $# > 0 ]]; do while [[ $# > 0 ]]; do
lowerI="$(echo $1 | awk '{print tolower($0)}')" lowerI="$(echo $1 | awk '{print tolower($0)}')"
case $lowerI in case $lowerI in
-c|--configuration) -c|--configuration)
export CONFIGURATION=$2 export CONFIGURATION=$2
args=( "${args[@]/$1}" )
args=( "${args[@]/$2}" )
shift shift
;; ;;
--nopackage) --nopackage)
export DOTNET_BUILD_SKIP_PACKAGING=1 export DOTNET_BUILD_SKIP_PACKAGING=1
args=( "${args[@]/$1}" )
;; ;;
--skip-prereqs) --skip-prereqs)
# Allow CI to disable prereqs check since the CI has the pre-reqs but not ldconfig it seems # Allow CI to disable prereqs check since the CI has the pre-reqs but not ldconfig it seems
export DOTNET_INSTALL_SKIP_PREREQS=1 export DOTNET_INSTALL_SKIP_PREREQS=1
args=( "${args[@]/$1}" )
;; ;;
--help) --help)
echo "Usage: $0 [--configuration <CONFIGURATION>] [--targets <TARGETS...>] [--skip-prereqs] [--nopackage] [--docker <IMAGENAME>] [--help]" echo "Usage: $0 [--configuration <CONFIGURATION>] [--targets <TARGETS...>] [--skip-prereqs] [--nopackage] [--docker <IMAGENAME>] [--help]"
@ -60,11 +55,6 @@ while [[ $# > 0 ]]; do
shift shift
done done
# $args array may have empty elements in it.
# The easiest way to remove them is to cast to string and back to array.
temp="${args[@]}"
args=($temp)
# Load Branch Info # Load Branch Info
while read line; do while read line; do
if [[ $line != \#* ]]; then if [[ $line != \#* ]]; then
@ -93,4 +83,4 @@ fi
# Disable first run since we want to control all package sources # Disable first run since we want to control all package sources
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
dotnet build3 build.proj /p:Architecture=$ARCHITECTURE "${args[@]}" dotnet build3 build.proj /p:Architecture=$ARCHITECTURE