dotnet-installer/scripts/build/process-args.sh
piotrp c8a11ce63c Remove --no-cache from scripts
--no-cache is not supported by NuGet v3
2016-01-23 09:53:51 -08:00

35 lines
852 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
;;
"--buildindocker-ubuntu")
export BUILD_IN_DOCKER=true
export DOCKER_OS=ubuntu
;;
"--buildindocker-centos")
export BUILD_IN_DOCKER=true
export DOCKER_OS=centos
;;
*)
esac
done