2023-07-24 15:56:15 -07:00
|
|
|
$path_root = git rev-parse --show-toplevel
|
|
|
|
$path_project = Join-Path $path_root project
|
2023-07-28 00:15:50 -07:00
|
|
|
$path_project_build = Join-Path $path_project build
|
|
|
|
$path_project_gen = Join-Path $path_project gen
|
2023-07-24 15:56:15 -07:00
|
|
|
$path_singleheader = Join-Path $path_root singleheader
|
2023-07-28 00:15:50 -07:00
|
|
|
$path_singleheader_build = Join-Path $path_singleheader build
|
|
|
|
$path_singleheader_gen = Join-Path $path_singleheader gen
|
2023-07-24 15:56:15 -07:00
|
|
|
$path_test = Join-Path $path_root test
|
2023-07-28 00:15:50 -07:00
|
|
|
$path_test_build = Join-Path $path_test build
|
2023-08-20 12:51:51 -07:00
|
|
|
$path_test_gen = Join-Path $path_test gen
|
2023-07-25 12:12:51 -07:00
|
|
|
$path_x64 = Join-Path $path_root x64
|
2023-08-09 15:47:59 -07:00
|
|
|
$path_release = Join-Path $path_root release
|
2023-07-24 15:56:15 -07:00
|
|
|
|
|
|
|
if ( Test-Path $path_project_build)
|
|
|
|
{
|
|
|
|
Remove-Item $path_project_build -Recurse
|
|
|
|
}
|
|
|
|
|
2023-07-28 00:15:50 -07:00
|
|
|
if ( Test-Path $path_project_gen )
|
|
|
|
{
|
|
|
|
Remove-Item $path_project_gen -Recurse
|
|
|
|
}
|
|
|
|
|
2023-07-24 15:56:15 -07:00
|
|
|
if ( Test-Path $path_singleheader_build)
|
2023-04-01 19:21:46 -07:00
|
|
|
{
|
2023-07-24 15:56:15 -07:00
|
|
|
Remove-Item $path_singleheader_build -Recurse
|
2023-04-01 19:21:46 -07:00
|
|
|
}
|
|
|
|
|
2023-07-28 00:15:50 -07:00
|
|
|
if ( Test-Path $path_singleheader_gen )
|
|
|
|
{
|
|
|
|
Remove-Item $path_singleheader_gen -Recurse
|
|
|
|
}
|
|
|
|
|
2023-04-01 19:21:46 -07:00
|
|
|
if ( Test-Path $path_test_build )
|
|
|
|
{
|
|
|
|
Remove-Item $path_test_build -Recurse
|
|
|
|
}
|
|
|
|
|
2023-08-20 12:51:51 -07:00
|
|
|
if ( Test-Path $path_test_gen )
|
2023-04-01 22:07:44 -07:00
|
|
|
{
|
2023-08-20 12:51:51 -07:00
|
|
|
Remove-Item $path_test_gen -Recurse
|
2023-04-01 22:07:44 -07:00
|
|
|
}
|
|
|
|
|
2023-07-25 12:12:51 -07:00
|
|
|
if ( Test-Path $path_x64)
|
|
|
|
{
|
|
|
|
Remove-Item $path_x64 -Recurse
|
|
|
|
}
|
|
|
|
|
2023-08-09 15:47:59 -07:00
|
|
|
if ( Test-Path $path_release )
|
|
|
|
{
|
|
|
|
Remove-Item $path_release -Recurse
|
|
|
|
}
|
2023-07-23 19:14:48 -07:00
|
|
|
|
2023-07-24 19:19:21 -07:00
|
|
|
$include = '*.h', '*.hpp', '*.cpp'
|
|
|
|
$exclude =
|
|
|
|
|
|
|
|
$files = Get-ChildItem -Recurse -Path $path_gen -Include $include -Exclude $exclude
|
|
|
|
|
|
|
|
if ( $files )
|
|
|
|
{
|
|
|
|
Remove-Item $files
|
|
|
|
}
|