Improved build script's --clean.

This commit is contained in:
Virgil Dupras 2013-12-07 11:14:59 -05:00
parent 4a36227a18
commit 0562729d8b
1 changed files with 3 additions and 2 deletions

View File

@ -327,8 +327,9 @@ def main():
if dev: if dev:
print("Building in Dev mode") print("Building in Dev mode")
if options.clean: if options.clean:
if op.exists('build'): for path in ['build', op.join('cocoa', 'build'), op.join('cocoa', 'autogen')]:
shutil.rmtree('build') if op.exists(path):
shutil.rmtree(path)
if not op.exists('build'): if not op.exists('build'):
os.mkdir('build') os.mkdir('build')
if options.doc: if options.doc: