dotnet-installer/scripts/build/process-args.sh
Sridhar Periyasamy 5155aa61d7 Enable docker support for centos builds
- Added an option '--buildindocker <osname>' to build.sh
- Fixed bug which caused packaging to be skipped by default.
- Fixed bug which caused tarballs to be generated twice.
- Fixed bug to propagate build params(like debug, nopackage) to docker build.
2016-01-07 18:50:00 -08:00

34 lines
813 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")
export BUILD_IN_DOCKER=true
export DOCKER_OS=${params[i+1]}
;;
*)
esac
done