OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 3 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 import shutil | 7 import shutil |
8 import sys | 8 import sys |
9 | 9 |
10 def Main(): | 10 def Main(): |
11 # Clean ninja output. | 11 # Clean ninja output. |
12 # TODO(ahe): Clobber build is called at wrong time: ninja generates its build | 12 # TODO(ahe): Clobber build is called at wrong time: ninja generates its build |
13 # files in "out". This command should be called before gclient runhooks. | 13 # files in "out". This command should be called before gclient runhooks. |
14 shutil.rmtree("out", ignore_errors=True) | 14 shutil.rmtree("out", ignore_errors=True) |
15 # Clean scons output. | 15 # Clean scons output. |
16 shutil.rmtree("build", ignore_errors=True) | 16 shutil.rmtree("build", ignore_errors=True) |
17 return 0 | 17 return 0 |
18 | 18 |
19 if __name__ == '__main__': | 19 if __name__ == '__main__': |
20 sys.exit(Main()) | 20 sys.exit(Main()) |
OLD | NEW |