You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
27
external/linker/corebuild/dotnet.ps1
vendored
Normal file
27
external/linker/corebuild/dotnet.ps1
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# set the base tools directory
|
||||
$toolsLocalPath = Join-Path $PSScriptRoot "Tools"
|
||||
$bootStrapperPath = Join-Path $toolsLocalPath "bootstrap.ps1"
|
||||
|
||||
# if the boot-strapper script doesn't exist copy it to the tools path
|
||||
if ((Test-Path $bootStrapperPath) -eq 0)
|
||||
{
|
||||
if ((Test-Path $toolsLocalPath) -eq 0)
|
||||
{
|
||||
mkdir $toolsLocalPath | Out-Null
|
||||
}
|
||||
|
||||
cp (Join-Path $PSScriptRoot "bootstrap.ps1") $bootStrapperPath
|
||||
}
|
||||
|
||||
# now execute it
|
||||
& $bootStrapperPath $PSScriptRoot $toolsLocalPath | Out-File (Join-Path $PSScriptRoot "bootstrap.log")
|
||||
if ($LastExitCode -ne 0)
|
||||
{
|
||||
Write-Output "Boot-strapping failed with exit code $LastExitCode, see bootstrap.log for more information."
|
||||
exit $LastExitCode
|
||||
}
|
||||
|
||||
# execute the tool using the dotnet.exe host
|
||||
$dotNetExe = Join-Path $toolsLocalPath "dotnetcli\dotnet.exe"
|
||||
& $dotNetExe $args
|
||||
exit $LastExitCode
|
||||
Reference in New Issue
Block a user