$projectsForLinux = @( "executable_path", "MandelZoom", "now", "PlaySound", "StartSuspended", "wxNotepad", "yekneb" ) $projectsForWindows = @( "Clock", "cmdLauncher", "DigClock", "executable_path", "GetStartTime", "Implementing-An-Accessibility-Server/Windows-API-Accessibility-Server", "ImportCertificate", "KeyView", "MandelZoom", "now", "PlaySound", "SkeletonWin32App", "StartSuspended", "wxNotepad", "yekneb" ) if ($IsLinux) { $projects = $projectsForLinux } elseif ($IsWindows) { $projects = $projectsForWindows } else { Write-Error "Unsupported platform" exit 1 } foreach ($project in $projects) { $projectDir = Join-Path -Path $PSScriptRoot -ChildPath "$project/trunk" $buildDir = Join-Path -Path $projectDir -ChildPath "build" if (Test-Path -Path $buildDir) { Write-Host "Removing build directory: $buildDir" Remove-Item -Recurse -Force -Path $buildDir } }