mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
22 lines
390 B
PowerShell
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
|