| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """This script will check out llvm and clang, and then package the results up | 6 """This script will check out llvm and clang, and then package the results up |
| 7 to a tgz file.""" | 7 to a tgz file.""" |
| 8 | 8 |
| 9 import argparse | 9 import argparse |
| 10 import fnmatch | 10 import fnmatch |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 with open('buildlog.txt', 'w') as log: | 69 with open('buildlog.txt', 'w') as log: |
| 70 Tee('Diff in llvm:\n', log) | 70 Tee('Diff in llvm:\n', log) |
| 71 TeeCmd(['svn', 'stat', LLVM_DIR], log, fail_hard=False) | 71 TeeCmd(['svn', 'stat', LLVM_DIR], log, fail_hard=False) |
| 72 TeeCmd(['svn', 'diff', LLVM_DIR], log, fail_hard=False) | 72 TeeCmd(['svn', 'diff', LLVM_DIR], log, fail_hard=False) |
| 73 Tee('Diff in llvm/tools/clang:\n', log) | 73 Tee('Diff in llvm/tools/clang:\n', log) |
| 74 TeeCmd(['svn', 'stat', os.path.join(LLVM_DIR, 'tools', 'clang')], | 74 TeeCmd(['svn', 'stat', os.path.join(LLVM_DIR, 'tools', 'clang')], |
| 75 log, fail_hard=False) | 75 log, fail_hard=False) |
| 76 TeeCmd(['svn', 'diff', os.path.join(LLVM_DIR, 'tools', 'clang')], | 76 TeeCmd(['svn', 'diff', os.path.join(LLVM_DIR, 'tools', 'clang')], |
| 77 log, fail_hard=False) | 77 log, fail_hard=False) |
| 78 # TODO(thakis): compiler-rt is in projects/compiler-rt on Windows but |
| 79 # llvm/compiler-rt elsewhere. So this diff call is currently only right on |
| 80 # Windows. |
| 78 Tee('Diff in llvm/compiler-rt:\n', log) | 81 Tee('Diff in llvm/compiler-rt:\n', log) |
| 79 TeeCmd(['svn', 'stat', os.path.join(LLVM_DIR, 'projects', 'compiler-rt')], | 82 TeeCmd(['svn', 'stat', os.path.join(LLVM_DIR, 'projects', 'compiler-rt')], |
| 80 log, fail_hard=False) | 83 log, fail_hard=False) |
| 81 TeeCmd(['svn', 'diff', os.path.join(LLVM_DIR, 'projects', 'compiler-rt')], | 84 TeeCmd(['svn', 'diff', os.path.join(LLVM_DIR, 'projects', 'compiler-rt')], |
| 82 log, fail_hard=False) | 85 log, fail_hard=False) |
| 83 Tee('Diff in llvm/projects/libcxx:\n', log) | 86 Tee('Diff in llvm/projects/libcxx:\n', log) |
| 84 TeeCmd(['svn', 'stat', os.path.join(LLVM_DIR, 'projects', 'libcxx')], | 87 TeeCmd(['svn', 'stat', os.path.join(LLVM_DIR, 'projects', 'libcxx')], |
| 85 log, fail_hard=False) | 88 log, fail_hard=False) |
| 86 TeeCmd(['svn', 'diff', os.path.join(LLVM_DIR, 'projects', 'libcxx')], | 89 TeeCmd(['svn', 'diff', os.path.join(LLVM_DIR, 'projects', 'libcxx')], |
| 87 log, fail_hard=False) | 90 log, fail_hard=False) |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 filter=PrintTarProgress) | 227 filter=PrintTarProgress) |
| 225 print ('gsutil cp -a public-read %s.tgz ' | 228 print ('gsutil cp -a public-read %s.tgz ' |
| 226 'gs://chromium-browser-clang/%s/%s.tgz') % (golddir, platform, | 229 'gs://chromium-browser-clang/%s/%s.tgz') % (golddir, platform, |
| 227 golddir) | 230 golddir) |
| 228 | 231 |
| 229 # FIXME: Warn if the file already exists on the server. | 232 # FIXME: Warn if the file already exists on the server. |
| 230 | 233 |
| 231 | 234 |
| 232 if __name__ == '__main__': | 235 if __name__ == '__main__': |
| 233 sys.exit(main()) | 236 sys.exit(main()) |
| OLD | NEW |