Chromium Code Reviews| Index: tools/update.py |
| diff --git a/tools/update.py b/tools/update.py |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..3f96af8dec687f0bf088174f9c7efb7779f1aa6b |
| --- /dev/null |
| +++ b/tools/update.py |
| @@ -0,0 +1,27 @@ |
| +#!/usr/bin/env python |
| +# Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import os |
| +import subprocess |
| +import sys |
| + |
| +ROOT = os.path.dirname(os.path.abspath(os.path.dirname(__file__))) |
| +APPCFG = os.path.join(ROOT, '..', 'google_appengine', 'appcfg.py') |
| + |
| +INSTANCES = [ |
| + 'chromeos-status', |
| + 'chromium-status', |
| + 'chromiumos-status', |
| + 'gyp-status', |
| + 'naclports-status', |
| + 'naclsdk-status', |
| + 'nativeclient-status', |
| + 'o3d-status', |
| +] |
| + |
| +command = sys.argv[1:] |
| +for instance in INSTANCES: |
| + print('\nDoing %s' % instance) |
|
bradn
2011/04/07 20:54:34
you don't need the parens for print.
|
| + subprocess.check_call([APPCFG] + command + [ROOT, '-A', instance]) |