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

install-nuget-credprovider-then-build.sh « eng - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5f86dd5957218a5bcde2ce0e6275c1041b81ce61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
set -e

# Installs the NuGet Credential Provider, then calls ../build.sh with all arguments. This creates a
# build context that can restore from authenticated sources. This script is intended for use by the
# official Microsoft build inside a Docker container.

source="${BASH_SOURCE[0]}"

# resolve $SOURCE until the file is no longer a symlink
while [[ -h $source ]]; do
  scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
  source="$(readlink "$source")"

  # if $source was a relative symlink, we need to resolve it relative to the path where the
  # symlink file was located
  [[ $source != /* ]] && source="$scriptroot/$source"
done

scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"

. "$scriptroot/install-nuget-credprovider.sh"

"$scriptroot/../build.sh" "$@"