7b255431d7
[master] Update dependencies from dotnet/arcade - Coherency Updates: - Microsoft.SourceLink.GitHub: from 1.1.0-beta-20628-02 to 1.1.0-beta-21055-03 (parent: Microsoft.DotNet.Arcade.Sdk) - XliffTasks: from 1.0.0-beta.20629.1 to 1.0.0-beta.20631.1 (parent: Microsoft.DotNet.Arcade.Sdk)
58 lines
1.1 KiB
Bash
Executable file
58 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
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 )"
|
|
|
|
verbosity='minimal'
|
|
warn_as_error=true
|
|
node_reuse=true
|
|
prepare_machine=false
|
|
extra_args=''
|
|
|
|
while (($# > 0)); do
|
|
lowerI="$(echo $1 | tr "[:upper:]" "[:lower:]")"
|
|
case $lowerI in
|
|
--verbosity)
|
|
verbosity=$2
|
|
shift 2
|
|
;;
|
|
--warnaserror)
|
|
warn_as_error=$2
|
|
shift 2
|
|
;;
|
|
--nodereuse)
|
|
node_reuse=$2
|
|
shift 2
|
|
;;
|
|
--ci)
|
|
ci=true
|
|
shift 1
|
|
;;
|
|
--preparemachine)
|
|
prepare_machine=true
|
|
shift 1
|
|
;;
|
|
*)
|
|
extra_args="$extra_args $1"
|
|
shift 1
|
|
;;
|
|
esac
|
|
done
|
|
|
|
. "$scriptroot/tools.sh"
|
|
|
|
if [[ "$ci" == true ]]; then
|
|
node_reuse=false
|
|
fi
|
|
|
|
MSBuild $extra_args
|
|
ExitWithExitCode 0
|