Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Side by Side Diff: tools/clang/scripts/package.py

Issue 1160213002: Clang package.py: fix list append vs. extend mistake (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 # Do a clobber build. 93 # Do a clobber build.
94 shutil.rmtree(LLVM_BOOTSTRAP_DIR, ignore_errors=True) 94 shutil.rmtree(LLVM_BOOTSTRAP_DIR, ignore_errors=True)
95 shutil.rmtree(LLVM_BOOTSTRAP_INSTALL_DIR, ignore_errors=True) 95 shutil.rmtree(LLVM_BOOTSTRAP_INSTALL_DIR, ignore_errors=True)
96 shutil.rmtree(LLVM_BUILD_DIR, ignore_errors=True) 96 shutil.rmtree(LLVM_BUILD_DIR, ignore_errors=True)
97 97
98 build_cmd = [sys.executable, os.path.join(THIS_DIR, 'update.py'), 98 build_cmd = [sys.executable, os.path.join(THIS_DIR, 'update.py'),
99 '--bootstrap', '--force-local-build', '--run-tests', 99 '--bootstrap', '--force-local-build', '--run-tests',
100 '--no-stdin-hack'] 100 '--no-stdin-hack']
101 if args.gcc_toolchain is not None: 101 if args.gcc_toolchain is not None:
102 build_cmd.append(['--gcc-toolchain', args.gcc_toolchain]) 102 build_cmd.extend(['--gcc-toolchain', args.gcc_toolchain])
103 TeeCmd(build_cmd, log) 103 TeeCmd(build_cmd, log)
104 104
105 stamp = open(STAMP_FILE).read().rstrip() 105 stamp = open(STAMP_FILE).read().rstrip()
106 pdir = 'clang-' + stamp 106 pdir = 'clang-' + stamp
107 print pdir 107 print pdir
108 shutil.rmtree(pdir, ignore_errors=True) 108 shutil.rmtree(pdir, ignore_errors=True)
109 109
110 # Copy a whitelist of files to the directory we're going to tar up. 110 # Copy a whitelist of files to the directory we're going to tar up.
111 # This supports the same patterns that the fnmatch module understands. 111 # This supports the same patterns that the fnmatch module understands.
112 so_ext = 'dylib' if sys.platform == 'darwin' else 'so' 112 so_ext = 'dylib' if sys.platform == 'darwin' else 'so'
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 filter=PrintTarProgress) 207 filter=PrintTarProgress)
208 print ('gsutil cp -a public-read %s.tgz ' 208 print ('gsutil cp -a public-read %s.tgz '
209 'gs://chromium-browser-clang/%s/%s.tgz') % (golddir, platform, 209 'gs://chromium-browser-clang/%s/%s.tgz') % (golddir, platform,
210 golddir) 210 golddir)
211 211
212 # FIXME: Warn if the file already exists on the server. 212 # FIXME: Warn if the file already exists on the server.
213 213
214 214
215 if __name__ == '__main__': 215 if __name__ == '__main__':
216 sys.exit(main()) 216 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698