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

Unified Diff: tools/list_pkg_directories.py

Issue 11444015: Create mock pub links in the build for all packages under pkg, not a hard-coded list (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 | « pkg/pkg.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/list_pkg_directories.py
===================================================================
--- tools/list_pkg_directories.py (revision 0)
+++ tools/list_pkg_directories.py (revision 0)
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
ahe 2012/12/06 13:44:39 The style guide we use for Python is http://www.ch
Alan Knight 2012/12/06 22:09:23 OK. I don't really know Python, so I don't even kn
ahe 2012/12/06 23:02:28 See: http://google-styleguide.googlecode.com/svn/t
+# Copyright (c) 2012, 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.
+
+
+'''Tool for listing the directories under pkg, with their lib directories.
+Used in pkg.gyp. Lists all of the directories in the current directory
+which have a lib subdirectory.
+
+Usage:
+ python tools/make_links.py TARGET SOURCES...
ahe 2012/12/06 13:44:39 The comment is out of date.
Alan Knight 2012/12/06 22:09:23 Done.
+'''
+import os
+
+paths = map(lambda x: x + '/lib', filter(os.path.isdir, os.listdir('.')))
+filter(lambda x: os.path.exists(x), paths)
+
ahe 2012/12/06 13:44:39 Extra line.
Alan Knight 2012/12/06 22:09:23 Done.
« no previous file with comments | « pkg/pkg.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698