dotnet-installer/scripts/build/process-args.sh

36 lines
852 B
Bash
Raw Normal View History

#!/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.
#
params=("$@")
for i in "${!params[@]}"
do
lowerI="$(echo ${params[$i]} | awk '{print tolower($0)}')"
case $lowerI in
2016-01-08 19:28:38 +00:00
"release" | "--release")
export CONFIGURATION=Release
;;
2016-01-08 19:28:38 +00:00
"debug" | "--debug")
export CONFIGURATION=Debug
;;
2016-01-08 19:28:38 +00:00
"offline" | "--offline")
export OFFLINE=true
;;
2016-01-08 19:28:38 +00:00
"nopackage" | "--nopackage")
export NOPACKAGE=true
;;
2016-01-08 19:28:38 +00:00
"--buildindocker-ubuntu")
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
;;
*)
esac
done