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

Unified Diff: tools/publish_all_pkgs.py

Issue 12088059: Add script to publish all packages in repo to pub. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/publish_all_pkgs.py
===================================================================
--- tools/publish_all_pkgs.py (revision 0)
+++ tools/publish_all_pkgs.py (revision 0)
@@ -0,0 +1,37 @@
+#!/usr/bin/env python
+#
+# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+#
+# Upload all packages in pkg/ (other than a few that should be explicitly
+# excluded), plus sdk/lib/_internal/compiler .
+#
+# Usage: publish_all_pkgs.py
+#
+# "pub" must be in PATH.
+
+
+import os
+import os.path
+import subprocess
+import sys
+
+def Main(argv):
+ pkgs_to_publish = []
+ for name in os.listdir('pkg'):
+ if os.path.isdir(os.path.join('pkg', name)):
+ if (name != '.svn' and name != 'fixnum' and
+ not name.endswith('-experimental')):
+ pkgs_to_publish.append(os.path.join('pkg', name))
+
+ # Publish dart2js as an "unsupported" package.
+ pkgs_to_publish.append(
+ os.path.join('sdk', 'lib', '_internal', 'compiler'))
+
+ for pkg in pkgs_to_publish:
+ print "Publishing " + pkg
+ subprocess.call(['python', 'tools/publish_pkg.py', pkg])
+
+if __name__ == '__main__':
+ sys.exit(Main(sys.argv))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698