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

Side by Side Diff: mojo/tools/rev_sdk.py

Issue 1311043003: Update mojo sdk to rev c02a28868825edfa57ab77947b8cb15e741c5598 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 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 '''Tool to roll Mojo into Chromium. See: 6 '''Tool to roll Mojo into Chromium. See:
7 https://github.com/domokit/mojo/wiki/Rolling-code-between-chromium-and-mojo#mojo ---chromium-updates-sdk--edk 7 https://github.com/domokit/mojo/wiki/Rolling-code-between-chromium-and-mojo#mojo ---chromium-updates-sdk--edk
8 ''' 8 '''
9 9
10 import os 10 import os
(...skipping 15 matching lines...) Expand all
26 'mojo/public/interfaces/network', 26 'mojo/public/interfaces/network',
27 'mojo/public/java/application', 27 'mojo/public/java/application',
28 ] 28 ]
29 29
30 # Individual files to preserve within the target repository during roll. These 30 # Individual files to preserve within the target repository during roll. These
31 # are relative to |sdk_prefix_in_chromium| but are not maintained in the mojo 31 # are relative to |sdk_prefix_in_chromium| but are not maintained in the mojo
32 # repository. 32 # repository.
33 preserved_chromium_files = [ 33 preserved_chromium_files = [
34 'mojo/edk/DEPS', 34 'mojo/edk/DEPS',
35 'mojo/public/DEPS', 35 'mojo/public/DEPS',
36 'mojo/public/c/gpu/DEPS',
36 'mojo/public/platform/nacl/DEPS', 37 'mojo/public/platform/nacl/DEPS',
37 'nacl_bindings/DEPS', 38 'nacl_bindings/DEPS',
38 ] 39 ]
39 40
40 # A dictionary mapping dirs to clone to their destination locations in Chromium. 41 # A dictionary mapping dirs to clone to their destination locations in Chromium.
41 dirs_to_clone = {} 42 dirs_to_clone = {}
42 43
43 for sdk_dir in sdk_dirs_to_clone: 44 for sdk_dir in sdk_dirs_to_clone:
44 sdk_dir_in_chromium = os.path.join(sdk_prefix_in_chromium, sdk_dir) 45 sdk_dir_in_chromium = os.path.join(sdk_prefix_in_chromium, sdk_dir)
45 dirs_to_clone[sdk_dir] = sdk_dir_in_chromium 46 dirs_to_clone[sdk_dir] = sdk_dir_in_chromium
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 92
92 commit('Update mojo sdk to rev ' + src_commit, cwd=chromium_dir) 93 commit('Update mojo sdk to rev ' + src_commit, cwd=chromium_dir)
93 94
94 if len(sys.argv) < 2: 95 if len(sys.argv) < 2:
95 print 'usage: rev_sdk.py <mojo source dir> [<mojo revision>]' 96 print 'usage: rev_sdk.py <mojo source dir> [<mojo revision>]'
96 sys.exit(1) 97 sys.exit(1)
97 98
98 # Allow override of the roll revision. 99 # Allow override of the roll revision.
99 revision = sys.argv[2] if len(sys.argv) == 3 else 'origin/HEAD' 100 revision = sys.argv[2] if len(sys.argv) == 3 else 'origin/HEAD'
100 rev(sys.argv[1], chromium_root_dir, revision) 101 rev(sys.argv[1], chromium_root_dir, revision)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698