Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>2018-03-11 00:54:01 +0300
committerSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>2018-03-11 00:55:18 +0300
commit29eabe2c115d8fef7e72c13b518ff2a17ed7c526 (patch)
tree258a25b2fdf7f5163213d489477215694aea9fee /init-tools.sh
parentc8723636c96c52a17056b7cb0813cb31ca21f653 (diff)
Revise init-tools.sh to support bootstrapping
Diffstat (limited to 'init-tools.sh')
-rwxr-xr-xinit-tools.sh22
1 files changed, 16 insertions, 6 deletions
diff --git a/init-tools.sh b/init-tools.sh
index 13ac3db942..1413353d34 100755
--- a/init-tools.sh
+++ b/init-tools.sh
@@ -122,13 +122,18 @@ if [ ! -e $__DOTNET_PATH ]; then
__DOTNET_LOCATION="https://dotnetcli.azureedge.net/dotnet/Sdk/${__DOTNET_TOOLS_VERSION}/${__DOTNET_PKG}.tar.gz"
install_dotnet_cli() {
- echo "Installing '${__DOTNET_LOCATION}' to '$__DOTNET_PATH/dotnet.tar'" >> "$__init_tools_log"
- rm -rf -- "$__DOTNET_PATH/*"
- # curl has HTTPS CA trust-issues less often than wget, so lets try that first.
- if command -v curl > /dev/null; then
- curl --retry 10 -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
+ if [[ "$DotNetBootstrapCliTarPath" = "" ]]; then
+ echo "Installing '${__DOTNET_LOCATION}' to '$__DOTNET_PATH/dotnet.tar'"
+ rm -rf -- "$__DOTNET_PATH/*"
+ # curl has HTTPS CA trust-issues less often than wget, so lets try that first.
+ if command -v curl > /dev/null; then
+ curl --retry 10 -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
+ else
+ wget -q -O $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
+ fi
else
- wget -q -O $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
+ echo "Copying '$DotNetBootstrapCliTarPath' to '$__DOTNET_PATH/dotnet.tar'"
+ cp $DotNetBootstrapCliTarPath $__DOTNET_PATH/dotnet.tar
fi
cd $__DOTNET_PATH
tar -xf $__DOTNET_PATH/dotnet.tar
@@ -157,6 +162,11 @@ echo "Using RID $__ILASM_RID for BuildTools native tools"
export ILASMCOMPILER_VERSION=$__ILASM_VERSION
export NATIVE_TOOLS_RID=$__ILASM_RID
+if [ ! "$DotNetBootstrapCliTarPath" = "" ]; then
+ # Assume ilasm is not in nuget yet when bootstrapping...
+ unset ILASMCOMPILER_VERSION
+fi
+
echo "Initializing BuildTools..."
echo "Running: $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR $__PACKAGES_DIR" >> $__init_tools_log