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:
authorMatt Ellis <matell@microsoft.com>2016-04-26 21:20:10 +0300
committerMatt Ellis <matell@microsoft.com>2016-04-26 21:20:10 +0300
commit7e390e49326e95867d201722a0e17de828532c77 (patch)
tree18a81c89c348a8a3e906a1d67796418c7437097d /build.sh
parentc422be8cb5ce8c71a9391878e7180f36ae2ff8b5 (diff)
Don't download nuget.exe in build.sh
We restore packages using the CLI now (which is obtained by running init-tools.sh) so this logic we have to download NuGet.exe is no longer needed.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/build.sh b/build.sh
index c7b479e52f..113be52a96 100755
--- a/build.sh
+++ b/build.sh
@@ -55,30 +55,6 @@ check_native_prereqs()
prepare_managed_build()
{
- # Pull NuGet.exe down if we don't have it already
- if [ ! -e "$__nugetpath" ]; then
- which curl wget > /dev/null 2> /dev/null
- if [ $? -ne 0 -a $? -ne 1 ]; then
- echo "cURL or wget is required to build corefx. Please see https://github.com/dotnet/corefx/blob/master/Documentation/building/unix-instructions.md for more details."
- exit 1
- fi
- echo "Restoring NuGet.exe..."
-
- # curl has HTTPS CA trust-issues less often than wget, so lets try that first.
- which curl > /dev/null 2> /dev/null
- if [ $? -ne 0 ]; then
- mkdir -p $__packageroot
- wget -q -O $__nugetpath https://api.nuget.org/downloads/nuget.exe
- else
- curl -sSL --create-dirs -o $__nugetpath https://api.nuget.org/downloads/nuget.exe
- fi
-
- if [ $? -ne 0 ]; then
- echo "Failed to restore NuGet.exe."
- exit 1
- fi
- fi
-
# Run Init-Tools to restore BuildTools and ToolRuntime
$__scriptpath/init-tools.sh
}
@@ -183,8 +159,6 @@ __scriptpath=$(cd "$(dirname "$0")"; pwd -P)
__nativeroot=$__scriptpath/src/Native
__packageroot=$__scriptpath/packages
__sourceroot=$__scriptpath/src
-__nugetpath=$__packageroot/NuGet.exe
-__nugetconfig=$__sourceroot/NuGet.Config
__rootbinpath="$__scriptpath/bin"
__msbuildpackageid="Microsoft.Build.Mono.Debug"
__generateversionsource=false