2015-12-28 19:47:21 +00:00
#
# 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.
#
COMMONSOURCE = " ${ BASH_SOURCE [0] } "
while [ -h " $SOURCE " ] ; do # resolve $SOURCE until the file is no longer a symlink
COMMONDIR = " $( cd -P " $( dirname " $COMMONSOURCE " ) " && pwd ) "
COMMONSOURCE = " $( readlink " $COMMONSOURCE " ) "
[ [ $COMMONSOURCE != /* ] ] && COMMONSOURCE = " $COMMONDIR / $COMMONSOURCE " # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
2015-12-29 20:40:39 +00:00
COMMONDIR = " $( cd -P " $( dirname " $COMMONSOURCE " ) " && pwd ) "
2015-12-28 19:47:21 +00:00
2015-12-29 20:40:39 +00:00
source " $COMMONDIR /_prettyprint.sh "
source " $COMMONDIR /_rid.sh "
2015-12-28 19:47:21 +00:00
# TODO: Replace this with a dotnet generation
2016-02-09 23:07:36 +00:00
export SKIP_CROSSGEN = false
2015-12-28 19:47:21 +00:00
export TFM = dnxcore50
2015-12-29 20:40:39 +00:00
export REPOROOT = $( cd $COMMONDIR /../.. && pwd )
2015-12-28 19:47:21 +00:00
export OUTPUT_ROOT = $REPOROOT /artifacts/$RID
export STAGE1_DIR = $OUTPUT_ROOT /stage1
export STAGE2_DIR = $OUTPUT_ROOT /stage2
export HOST_DIR = $OUTPUT_ROOT /corehost
2016-01-23 20:55:03 +00:00
export TEST_BIN_ROOT = " $REPOROOT /artifacts/tests "
export TEST_PACKAGE_DIR = " $TEST_BIN_ROOT /packages "
2016-02-02 22:54:49 +00:00
export TEST_ROOT = " $OUTPUT_ROOT /tests "
export TEST_ARTIFACTS = " $TEST_ROOT /artifacts "
2016-02-02 20:24:23 +00:00
2016-01-21 03:08:00 +00:00
export RELEASE_SUFFIX = beta
export CHANNEL = $RELEASE_SUFFIX
2015-12-28 19:47:21 +00:00
[ -z " $DOTNET_INSTALL_DIR " ] && export DOTNET_INSTALL_DIR = $REPOROOT /.dotnet_stage0/$RID
2016-01-12 23:27:02 +00:00
[ -z " $DOTNET_CLI_VERSION " ] && export DOTNET_CLI_VERSION = 0.1.0.0
2015-12-28 19:47:21 +00:00
[ -z " $DOTNET_HOME " ] && export DOTNET_HOME = $STAGE2_DIR && export PATH = $STAGE2_DIR /bin:$PATH
2016-01-05 07:50:28 +00:00
[ -z " $CONFIGURATION " ] && export CONFIGURATION = Debug
2015-12-28 19:47:21 +00:00
2016-01-23 20:55:03 +00:00
# Common Files which depend on above properties
source " $COMMONDIR /_nuget.sh "
source " $COMMONDIR /_configuration.sh "
2016-01-29 19:13:07 +00:00
#TODO this is a workaround for a nuget bug on ubuntu. Remove
export DISABLE_PARALLEL = ""
2016-01-30 03:04:18 +00:00
[ [ " $RID " = ~ "ubuntu" ] ] && export DISABLE_PARALLEL = "--disable-parallel"
2016-01-29 19:13:07 +00:00
2015-12-29 20:40:39 +00:00
unset COMMONSOURCE
2016-01-29 19:13:07 +00:00
unset COMMONDIR