Files
Archive/netch/Other/clean.ps1
2024-03-05 02:32:38 -08:00

21 lines
387 B
PowerShell

Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
if ( Test-Path 'build' ) {
rm -Recurse -Force 'build'
}
if ( Test-Path 'release' ) {
rm -Recurse -Force 'release'
}
Get-ChildItem -Path '.' -Directory | ForEach-Object {
$name=$_.Name
if ( Test-Path "$name\src" ) {
rm -Recurse -Force "$name\src"
}
}
Pop-Location
exit 0