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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/update.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« 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