2015-12-28 19:47:21 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
#
|
|
|
|
|
2016-01-08 02:50:00 +00:00
|
|
|
params=("$@")
|
|
|
|
|
|
|
|
for i in "${!params[@]}"
|
2015-12-28 19:47:21 +00:00
|
|
|
do
|
2016-01-08 02:50:00 +00:00
|
|
|
lowerI="$(echo ${params[$i]} | awk '{print tolower($0)}')"
|
2015-12-28 19:47:21 +00:00
|
|
|
case $lowerI in
|
2016-01-08 19:28:38 +00:00
|
|
|
"release" | "--release")
|
2015-12-28 19:47:21 +00:00
|
|
|
export CONFIGURATION=Release
|
|
|
|
;;
|
2016-01-08 19:28:38 +00:00
|
|
|
"debug" | "--debug")
|
2015-12-28 19:47:21 +00:00
|
|
|
export CONFIGURATION=Debug
|
|
|
|
;;
|
2016-01-08 19:28:38 +00:00
|
|
|
"offline" | "--offline")
|
2015-12-28 19:47:21 +00:00
|
|
|
export OFFLINE=true
|
|
|
|
;;
|
2016-01-08 19:28:38 +00:00
|
|
|
"nopackage" | "--nopackage")
|
2015-12-28 19:47:21 +00:00
|
|
|
export NOPACKAGE=true
|
|
|
|
;;
|
2016-01-08 19:28:38 +00:00
|
|
|
"--buildindocker-ubuntu")
|
2016-01-08 02:50:00 +00:00
|
|
|
export BUILD_IN_DOCKER=true
|
2016-01-08 19:28:38 +00:00
|
|
|
export DOCKER_OS=ubuntu
|
|
|
|
;;
|
|
|
|
"--buildindocker-centos")
|
|
|
|
export BUILD_IN_DOCKER=true
|
|
|
|
export DOCKER_OS=centos
|
2016-01-08 02:50:00 +00:00
|
|
|
;;
|
2015-12-28 19:47:21 +00:00
|
|
|
*)
|
|
|
|
esac
|
2016-01-08 02:50:00 +00:00
|
|
|
done
|