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

Side by Side Diff: buildbot/scripts/slave/chromium/archive_build.py

Issue 200074: Add back icudt38.dll to the list of files to archive and the list of files fo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/
Patch Set: '' Created 11 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « buildbot/scripts/common/chromium_config.py ('k') | 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/python 1 #!/usr/bin/python
2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2008 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 """A tool to archive a build and its symbols, executed by a buildbot slave. 6 """A tool to archive a build and its symbols, executed by a buildbot slave.
7 7
8 This script is used for developer builds. 8 This script is used for developer builds.
9 9
10 When this is run, the current directory (cwd) should be the outer build 10 When this is run, the current directory (cwd) should be the outer build
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 for glob_dir in config.Archive.test_dirs_to_archive: 340 for glob_dir in config.Archive.test_dirs_to_archive:
341 test_files += glob.glob(os.path.join(self._build_dir, glob_dir, '*')) 341 test_files += glob.glob(os.path.join(self._build_dir, glob_dir, '*'))
342 test_dirs = config.Archive.test_dirs_to_create 342 test_dirs = config.Archive.test_dirs_to_create
343 343
344 test_dirs = [os.path.join(www_dir, 'chrome-win32.test', d) 344 test_dirs = [os.path.join(www_dir, 'chrome-win32.test', d)
345 for d in test_dirs] 345 for d in test_dirs]
346 base_src_dir = os.path.join(self._build_dir, '') 346 base_src_dir = os.path.join(self._build_dir, '')
347 347
348 for test_dir in test_dirs: 348 for test_dir in test_dirs:
349 print 'chromium_utils.MaybeMakeDirectory(%s)' % test_dir 349 print 'chromium_utils.MaybeMakeDirectory(%s)' % test_dir
350 for test_file in test_files: 350 for test_file in test_files[:]:
351 relative_dir = os.path.dirname(test_file[len(base_src_dir):]) 351 relative_dir = os.path.dirname(test_file[len(base_src_dir):])
352 test_dir = os.path.join(www_dir, 'chrome-win32.test', relative_dir) 352 test_dir = os.path.join(www_dir, 'chrome-win32.test', relative_dir)
353 print 'chromium_utils.CopyFileToDir(%s, %s)' % (test_file, test_dir) 353 if os.path.exists(test_file):
354 print 'chromium_utils.CopyFileToDir(%s, %s)' % (test_file, test_dir)
355 else:
356 print '%s does not exist and is skipped.' % test_file
357 test_files.remove(test_file)
358
354 if not DRY_RUN: 359 if not DRY_RUN:
355 for test_dir in test_dirs: 360 for test_dir in test_dirs:
356 chromium_utils.MaybeMakeDirectory(test_dir) 361 chromium_utils.MaybeMakeDirectory(test_dir)
357 for test_file in test_files: 362 for test_file in test_files:
358 relative_dir = os.path.dirname(test_file[len(base_src_dir):]) 363 relative_dir = os.path.dirname(test_file[len(base_src_dir):])
359 test_dir = os.path.join(www_dir, 'chrome-win32.test', relative_dir) 364 test_dir = os.path.join(www_dir, 'chrome-win32.test', relative_dir)
360 chromium_utils.CopyFileToDir(test_file, test_dir) 365 chromium_utils.CopyFileToDir(test_file, test_dir)
361 366
362 if not DRY_RUN: 367 if not DRY_RUN:
363 # Save the current build revision locally so we can compute a changelog 368 # Save the current build revision locally so we can compute a changelog
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 option_parser.add_option('', '--target', default='Release', 420 option_parser.add_option('', '--target', default='Release',
416 help='build target to archive (Debug or Release)') 421 help='build target to archive (Debug or Release)')
417 option_parser.add_option('', '--src-dir', default='src', 422 option_parser.add_option('', '--src-dir', default='src',
418 help='path to the top-level sources directory') 423 help='path to the top-level sources directory')
419 option_parser.add_option('', '--build-dir', default='chrome', 424 option_parser.add_option('', '--build-dir', default='chrome',
420 help='path to main build directory (the parent of ' 425 help='path to main build directory (the parent of '
421 'the Release or Debug directory)') 426 'the Release or Debug directory)')
422 427
423 options, args = option_parser.parse_args() 428 options, args = option_parser.parse_args()
424 sys.exit(main(options, args)) 429 sys.exit(main(options, args))
OLDNEW
« no previous file with comments | « buildbot/scripts/common/chromium_config.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698