Clean link_commands.json

This commit is contained in:
Kovid Goyal 2019-07-07 04:52:24 +05:30
parent 67f23664c9
commit 93af102bec
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -887,7 +887,10 @@ def clean():
else:
os.unlink(x)
safe_remove('build', 'compile_commands.json', 'linux-package', 'kitty.app', 'asan-launcher', 'kitty-profile', 'kitty/launcher')
safe_remove(
'build', 'compile_commands.json', 'link_commands.json',
'linux-package', 'kitty.app', 'asan-launcher',
'kitty-profile', 'kitty/launcher')
exclude = ('.git',)
for root, dirs, files in os.walk('.', topdown=True):
dirs[:] = [d for d in dirs if d not in exclude]