Address PR feedback.

This commit is contained in:
Sridhar Periyasamy 2016-01-08 11:28:38 -08:00
parent 3c53e26d59
commit 08f960b03d
2 changed files with 12 additions and 7 deletions

View file

@ -10,24 +10,28 @@ for i in "${!params[@]}"
do
lowerI="$(echo ${params[$i]} | awk '{print tolower($0)}')"
case $lowerI in
"release" | "-release")
"release" | "--release")
export CONFIGURATION=Release
;;
"debug" | "-debug")
"debug" | "--debug")
export CONFIGURATION=Debug
;;
"offline" | "-offline")
"offline" | "--offline")
export OFFLINE=true
;;
"nopackage" | "-nopackage")
"nopackage" | "--nopackage")
export NOPACKAGE=true
;;
"nocache" | "-nocache")
"nocache" | "--nocache")
export NOCACHE=--No-Cache
;;
"--buildindocker")
"--buildindocker-ubuntu")
export BUILD_IN_DOCKER=true
export DOCKER_OS=${params[i+1]}
export DOCKER_OS=ubuntu
;;
"--buildindocker-centos")
export BUILD_IN_DOCKER=true
export DOCKER_OS=centos
;;
*)
esac

View file

@ -13,6 +13,7 @@ done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
source "$DIR/../common/_common.sh"
source "$REPOROOT/scripts/build/generate-version.sh"
if [ -z "$DOTNET_BUILD_VERSION" ]; then
TIMESTAMP=$(date "+%Y%m%d%H%M%S")