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

Side by Side Diff: tools/publish_all_pkgs.py

Issue 22375011: move html5lib code into dart svn repo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: change location of html5lib to pkg/third_party/html5lib Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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 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. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 # Upload all packages in pkg/ (other than a few that should be explicitly 7 # Upload all packages in pkg/ (other than a few that should be explicitly
8 # excluded), plus sdk/lib/_internal/compiler . 8 # excluded), plus sdk/lib/_internal/compiler .
9 # 9 #
10 # Usage: publish_all_pkgs.py 10 # Usage: publish_all_pkgs.py
11 # 11 #
12 # "pub" must be in PATH. 12 # "pub" must be in PATH.
13 13
14 14
15 import os 15 import os
16 import os.path 16 import os.path
17 import subprocess 17 import subprocess
18 import sys 18 import sys
19 19
20 def Main(argv): 20 def Main(argv):
21 pkgs_to_publish = [] 21 for pkgdir in ['pkg', 'pkg/third_party']:
22 for name in os.listdir('pkg'): 22 for name in os.listdir(pkgdir):
23 if os.path.isdir(os.path.join('pkg', name)): 23 if os.path.isdir(os.path.join(pkgdir, name)):
24 if (name != '.svn' and name != 'expect'): 24 if (name != '.svn' and name != 'expect' and name != 'third_party'):
25 pkgs_to_publish.append(os.path.join('pkg', name)) 25 pkgs_to_publish.append(os.path.join(pkgdir, name))
26 26
27 for pkg in pkgs_to_publish: 27 for pkg in pkgs_to_publish:
28 print "\n\nPublishing %s:\n-------------------------------" % pkg 28 print "\n\nPublishing %s:\n-------------------------------" % pkg
29 subprocess.call(['python', 'tools/publish_pkg.py', pkg]) 29 subprocess.call(['python', 'tools/publish_pkg.py', pkg])
30 30
31 if __name__ == '__main__': 31 if __name__ == '__main__':
32 sys.exit(Main(sys.argv)) 32 sys.exit(Main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698