| Index: tools/update.py
|
| diff --git a/tools/update.py b/tools/update.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..d7b30fcfc095cb79e5c67b74104096bd606c3896
|
| --- /dev/null
|
| +++ b/tools/update.py
|
| @@ -0,0 +1,41 @@
|
| +#!/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',
|
| +]
|
| +
|
| +def main():
|
| + if not sys.argv[1:]:
|
| + print('Usage: update.py <appcfg.py command> -v <version to use>\n')
|
| + print('The following instances will be affected:')
|
| + for instance in INSTANCES:
|
| + print(' %s' % instance)
|
| + print('')
|
| + return 1
|
| +
|
| + command = sys.argv[1:]
|
| + for instance in INSTANCES:
|
| + print('\nDoing %s' % instance)
|
| + subprocess.check_call([APPCFG] + command + [ROOT, '-A', instance])
|
| + return 0
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(main())
|
|
|