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

Side by Side Diff: tools/update.py

Issue 6814025: Convert update tool into python for easier hackability (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chromium-status
Patch Set: added help Created 9 years, 8 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 | « no previous file | tools/update.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7 import subprocess
8 import sys
9
10 ROOT = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))
11 APPCFG = os.path.join(ROOT, '..', 'google_appengine', 'appcfg.py')
12
13 INSTANCES = [
14 'chromeos-status',
15 'chromium-status',
16 'chromiumos-status',
17 'gyp-status',
18 'naclports-status',
19 'naclsdk-status',
20 'nativeclient-status',
21 'o3d-status',
22 ]
23
24 def main():
25 if not sys.argv[1:]:
26 print('Usage: update.py <appcfg.py command> -v <version to use>\n')
27 print('The following instances will be affected:')
28 for instance in INSTANCES:
29 print(' %s' % instance)
30 print('')
31 return 1
32
33 command = sys.argv[1:]
34 for instance in INSTANCES:
35 print('\nDoing %s' % instance)
36 subprocess.check_call([APPCFG] + command + [ROOT, '-A', instance])
37 return 0
38
39
40 if __name__ == '__main__':
41 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | tools/update.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698