summaryrefslogtreecommitdiff
path: root/gui/win32/scripts/clean.ps1
blob: 59d95938a3f88444bec124a6083516713e40b507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$originalLocation = Get-Location
$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-Location $scriptPath

if (!(Test-Path -Path "..\build")) {
    Set-Location $originalLocation
    exit
}

Remove-Item "..\build" -Recurse -Force -ErrorAction SilentlyContinue
if (Test-Path -Path "..\.clangd") {
    Remove-Item "..\.clangd" -Recurse -Force -ErrorAction SilentlyContinue
}

Set-Location $originalLocation