| OLD | NEW |
| (Empty) | |
| 1 #!/usr/bin/env python |
| 2 # |
| 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. |
| 6 # |
| 7 # Upload all packages in pkg/ (other than a few that should be explicitly |
| 8 # excluded), plus sdk/lib/_internal/compiler . |
| 9 # |
| 10 # Usage: publish_all_pkgs.py |
| 11 # |
| 12 # "pub" must be in PATH. |
| 13 |
| 14 |
| 15 import os |
| 16 import os.path |
| 17 import subprocess |
| 18 import sys |
| 19 |
| 20 def Main(argv): |
| 21 pkgs_to_publish = [] |
| 22 for name in os.listdir('pkg'): |
| 23 if os.path.isdir(os.path.join('pkg', name)): |
| 24 if (name != '.svn' and name != 'fixnum' and |
| 25 not name.endswith('-experimental')): |
| 26 pkgs_to_publish.append(os.path.join('pkg', name)) |
| 27 |
| 28 # Publish dart2js as an "unsupported" package. |
| 29 pkgs_to_publish.append( |
| 30 os.path.join('sdk', 'lib', '_internal', 'compiler')) |
| 31 |
| 32 for pkg in pkgs_to_publish: |
| 33 print "Publishing " + pkg |
| 34 subprocess.call(['python', 'tools/publish_pkg.py', pkg]) |
| 35 |
| 36 if __name__ == '__main__': |
| 37 sys.exit(Main(sys.argv)) |
| OLD | NEW |