Files
netch/Other/build.ps1
2021-07-10 14:49:55 +08:00

22 lines
390 B
PowerShell

$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
$last=(Get-Location).Path
Set-Location $exec
.\clean.ps1
Get-ChildItem -Path . -Directory | ForEach-Object {
$name=$_.Name
Write-Host "Building $name"
& ".\$name\build.ps1"
if ( -Not $? ) {
Write-Host "Build $name failed"
exit $lastExitCode
}
}
Set-Location $last
exit 0