OLD | NEW |
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 import os | 6 import os |
7 import sys | 7 import sys |
8 from utils import commit | 8 from utils import commit |
9 from utils import mojo_root_dir | 9 from utils import mojo_root_dir |
10 from utils import system | 10 from utils import system |
11 | 11 |
12 dirs_to_clone = [ | 12 dirs_to_clone = [ |
13 "mojo/edk", | 13 "mojo/edk", |
14 "mojo/public", | 14 "mojo/public", |
15 "mojo/services/public", | 15 "mojo/services/public", |
16 "mojo/services/accessibility/public", | 16 "mojo/services/accessibility/public", |
17 "mojo/services/clipboard/public", | 17 "mojo/services/clipboard/public", |
18 "mojo/services/content_handler/public", | 18 "mojo/services/content_handler/public", |
19 "mojo/services/geometry/public", | 19 "mojo/services/geometry/public", |
20 "mojo/services/gpu/public", | 20 "mojo/services/gpu/public", |
21 "mojo/services/input_events/public", | 21 "mojo/services/input_events/public", |
22 "mojo/services/native_viewport/public", | 22 "mojo/services/native_viewport/public", |
23 "mojo/services/navigation/public", | 23 "mojo/services/navigation/public", |
24 "mojo/services/network/public", | |
25 "mojo/services/surfaces/public", | 24 "mojo/services/surfaces/public", |
26 "mojo/services/view_manager/public", | 25 "mojo/services/view_manager/public", |
27 "mojo/services/window_manager/public", | 26 "mojo/services/window_manager/public", |
28 ] | 27 ] |
29 | 28 |
30 cloned_dir_prefixes = { | 29 cloned_dir_prefixes = { |
31 "mojo/edk" : "third_party/mojo/src", | 30 "mojo/edk" : "third_party/mojo/src", |
32 "mojo/public" : "third_party/mojo/src", | 31 "mojo/public" : "third_party/mojo/src", |
33 } | 32 } |
34 | 33 |
(...skipping 25 matching lines...) Expand all Loading... |
60 with open(version_filename, "w") as version_file: | 59 with open(version_filename, "w") as version_file: |
61 version_file.write(src_commit) | 60 version_file.write(src_commit) |
62 system(["git", "add", version_filename], cwd=chromium_dir) | 61 system(["git", "add", version_filename], cwd=chromium_dir) |
63 commit("Update mojo sdk to rev " + src_commit, cwd=chromium_dir) | 62 commit("Update mojo sdk to rev " + src_commit, cwd=chromium_dir) |
64 | 63 |
65 if len(sys.argv) != 2: | 64 if len(sys.argv) != 2: |
66 print "usage: rev_sdk.py <chromium source dir>" | 65 print "usage: rev_sdk.py <chromium source dir>" |
67 sys.exit(1) | 66 sys.exit(1) |
68 | 67 |
69 rev(mojo_root_dir, sys.argv[1]) | 68 rev(mojo_root_dir, sys.argv[1]) |
OLD | NEW |