| OLD | NEW |
| (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()) |
| OLD | NEW |