| OLD | NEW |
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #!/usr/bin/python | 5 #!/usr/bin/python |
| 6 | 6 |
| 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 8 # Use of this source code is governed by a BSD-style license that can be | 8 # Use of this source code is governed by a BSD-style license that can be |
| 9 # found in the LICENSE file. | 9 # found in the LICENSE file. |
| 10 | 10 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 print java_home | 140 print java_home |
| 141 | 141 |
| 142 def ClobberBuilder(): | 142 def ClobberBuilder(): |
| 143 """ Clobber the builder before we do the build. | 143 """ Clobber the builder before we do the build. |
| 144 Args: | 144 Args: |
| 145 - mode: either 'debug' or 'release' | 145 - mode: either 'debug' or 'release' |
| 146 """ | 146 """ |
| 147 cmd = [sys.executable, | 147 cmd = [sys.executable, |
| 148 './tools/clean_output_directory.py'] | 148 './tools/clean_output_directory.py'] |
| 149 print 'Clobbering %s' % (' '.join(cmd)) | 149 print 'Clobbering %s' % (' '.join(cmd)) |
| 150 return subprocess.call(cmd, env=NO_COLOR_ENV) | 150 return subprocess.call(cmd) |
| 151 | 151 |
| 152 def GetShouldClobber(): | 152 def GetShouldClobber(): |
| 153 return os.environ.get(BUILDER_CLOBBER) == "1" | 153 return os.environ.get(BUILDER_CLOBBER) == "1" |
| 154 | 154 |
| 155 def main(): | 155 def main(): |
| 156 print 'main' | 156 print 'main' |
| 157 if len(sys.argv) == 0: | 157 if len(sys.argv) == 0: |
| 158 print 'Script pathname not known, giving up.' | 158 print 'Script pathname not known, giving up.' |
| 159 return 1 | 159 return 1 |
| 160 | 160 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 182 status = ProcessCompiler(name) | 182 status = ProcessCompiler(name) |
| 183 | 183 |
| 184 if status: | 184 if status: |
| 185 print '@@@STEP_FAILURE@@@' | 185 print '@@@STEP_FAILURE@@@' |
| 186 | 186 |
| 187 return status | 187 return status |
| 188 | 188 |
| 189 | 189 |
| 190 if __name__ == '__main__': | 190 if __name__ == '__main__': |
| 191 sys.exit(main()) | 191 sys.exit(main()) |
| OLD | NEW |