2023-04-01 19:21:46 -07:00
|
|
|
$path_root = git rev-parse --show-toplevel
|
|
|
|
$path_build = Join-Path $path_root build
|
|
|
|
$path_test = Join-Path $path_root test
|
2023-04-01 22:07:44 -07:00
|
|
|
$path_gen = Join-Path $path_test gen
|
2023-04-01 19:21:46 -07:00
|
|
|
$path_test_build = Join-Path $path_test build
|
2023-04-01 22:07:44 -07:00
|
|
|
$path_gen_build = Join-Path $path_gen build
|
2023-04-01 19:21:46 -07:00
|
|
|
|
|
|
|
if ( Test-Path $path_build )
|
|
|
|
{
|
|
|
|
Remove-Item $path_build -Recurse
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( Test-Path $path_test_build )
|
|
|
|
{
|
|
|
|
Remove-Item $path_test_build -Recurse
|
|
|
|
}
|
|
|
|
|
2023-04-01 22:07:44 -07:00
|
|
|
if ( Test-Path $path_gen_build )
|
|
|
|
{
|
|
|
|
Remove-Item $path_gen_build -Recurse
|
|
|
|
}
|
|
|
|
|
2023-04-02 08:53:15 -07:00
|
|
|
[string[]] $include = '*.h', '*.hpp', '*.cpp'
|
|
|
|
[string[]] $exclude =
|
2023-04-01 19:21:46 -07:00
|
|
|
|
2023-04-02 08:53:15 -07:00
|
|
|
$files = Get-ChildItem -Recurse -Path $path_gen -Include $include -Exclude $exclude
|
2023-04-01 19:21:46 -07:00
|
|
|
|
2023-04-02 08:53:15 -07:00
|
|
|
if ( $files )
|
|
|
|
{
|
|
|
|
Remove-Item $files
|
|
|
|
}
|
2023-07-23 19:14:48 -07:00
|
|
|
|