This repository has been archived on 2025-09-07. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
dotnet-installer/scripts/build/process-args.sh
Sridhar Periyasamy 08f960b03d Address PR feedback.
2016-01-08 11:28:38 -08:00

38 lines
926 B
Bash
Executable file

#!/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
"release" | "--release")
export CONFIGURATION=Release
;;
"debug" | "--debug")
export CONFIGURATION=Debug
;;
"offline" | "--offline")
export OFFLINE=true
;;
"nopackage" | "--nopackage")
export NOPACKAGE=true
;;
"nocache" | "--nocache")
export NOCACHE=--No-Cache
;;
"--buildindocker-ubuntu")
export BUILD_IN_DOCKER=true
export DOCKER_OS=ubuntu
;;
"--buildindocker-centos")
export BUILD_IN_DOCKER=true
export DOCKER_OS=centos
;;
*)
esac
done