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/network/public", |
16 "mojo/services/surfaces/public", | 17 "mojo/services/surfaces/public", |
17 "mojo/services/view_manager/public", | 18 "mojo/services/view_manager/public", |
18 "mojo/services/window_manager/public", | 19 "mojo/services/window_manager/public", |
19 ] | 20 ] |
20 | 21 |
21 def rev(source_dir, chromium_dir): | 22 def rev(source_dir, chromium_dir): |
22 src_commit = system(["git", "show-ref", "HEAD", "-s"], cwd=source_dir).strip() | 23 src_commit = system(["git", "show-ref", "HEAD", "-s"], cwd=source_dir).strip() |
23 | 24 |
24 for d in dirs_to_clone: | 25 for d in dirs_to_clone: |
25 print "removing directory %s" % d | 26 print "removing directory %s" % d |
(...skipping 14 matching lines...) Expand all Loading... |
40 with open("mojo/public/VERSION", "w") as version_file: | 41 with open("mojo/public/VERSION", "w") as version_file: |
41 version_file.write(src_commit) | 42 version_file.write(src_commit) |
42 system(["git", "add", "mojo/public/VERSION"], cwd=chromium_dir) | 43 system(["git", "add", "mojo/public/VERSION"], cwd=chromium_dir) |
43 commit("Update mojo sdk to rev " + src_commit, cwd=chromium_dir) | 44 commit("Update mojo sdk to rev " + src_commit, cwd=chromium_dir) |
44 | 45 |
45 if len(sys.argv) != 2: | 46 if len(sys.argv) != 2: |
46 print "usage: rev_sdk.py <chromium source dir>" | 47 print "usage: rev_sdk.py <chromium source dir>" |
47 sys.exit(1) | 48 sys.exit(1) |
48 | 49 |
49 rev(mojo_root_dir, sys.argv[1]) | 50 rev(mojo_root_dir, sys.argv[1]) |
OLD | NEW |