gencpp/scripts/clean.ps1

43 lines
1.5 KiB
PowerShell
Raw Normal View History

$path_root = git rev-parse --show-toplevel
2024-12-10 13:38:01 -08:00
$path_base = Join-Path $path_root base
$path_base_build = Join-Path $path_base build
$path_singleheader = Join-Path $path_root singleheader
$path_singleheader_build = Join-Path $path_singleheader build
$path_singleheader_gen = Join-Path $path_singleheader gen
2024-12-10 13:38:01 -08:00
$path_unreal = Join-Path $paht_root unreal
$path_unreal_build = Join-Path $path_unreal build
$path_unreal_gen = Join-Path $path_unreal gen
$path_test = Join-Path $path_root test
$path_test_build = Join-Path $path_test build
$path_test_gen = Join-Path $path_test gen
$path_x64 = Join-Path $path_root x64
$path_release = Join-Path $path_root release
if ( Test-Path $path_project_build) {
Remove-Item $path_project_build -Recurse
}
2024-12-10 13:38:01 -08:00
if ( Test-Path $path_project_gen ) {
Remove-Item $path_project_gen -Recurse
}
2024-12-10 13:38:01 -08:00
if ( Test-Path $path_singleheader_build) {
Remove-Item $path_singleheader_build -Recurse
2023-04-01 19:21:46 -07:00
}
2024-12-10 13:38:01 -08:00
if ( Test-Path $path_singleheader_gen ) {
Remove-Item $path_singleheader_gen -Recurse
}
2024-12-10 13:38:01 -08:00
if ( Test-Path $path_unreal ) {
Remove-Item $path_unreal_build -Recurse
}
if ( Test-Path $path_test_build ) {
2023-04-01 19:21:46 -07:00
Remove-Item $path_test_build -Recurse
}
2024-12-10 13:38:01 -08:00
if ( Test-Path $path_test_gen ) {
Remove-Item $path_test_gen -Recurse
}
2024-12-10 13:38:01 -08:00
if ( Test-Path $path_x64) {
Remove-Item $path_x64 -Recurse
}
2024-12-10 13:38:01 -08:00
if ( Test-Path $path_release ) {
Remove-Item $path_release -Recurse
}