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

Unified Diff: tools/list_pkg_directories.py

Issue 2346163005: Remove package root target and support scripts (Closed)
Patch Set: Created 4 years, 3 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 | « tools/dartium/build.py ('k') | tools/make_links.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/list_pkg_directories.py
diff --git a/tools/list_pkg_directories.py b/tools/list_pkg_directories.py
deleted file mode 100755
index c05b63a09b5fb4fc011f990d62afa243f7e50e3f..0000000000000000000000000000000000000000
--- a/tools/list_pkg_directories.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env python
-# 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 directory passed in as an
-argument to this script which have a lib subdirectory.
-
-Usage:
- python tools/list_pkg_directories.py OPTIONS DIRECTORY
-"""
-
-import optparse
-import os
-import sys
-
-def get_options():
- result = optparse.OptionParser()
- result.add_option("--exclude",
- help='A comma-separated list of directory names to exclude.')
- return result.parse_args()
-
-def main(argv):
- (options, args) = get_options()
- directory = args[0]
- exclude = options.exclude.split(',') if options.exclude else []
-
- paths = [
- path + '/lib' for path in os.listdir(directory)
- if path not in exclude and os.path.isdir(os.path.join(directory, path))
- ]
-
- for lib in filter(lambda x: os.path.exists(os.path.join(directory, x)),
- paths):
- print '%s/%s' % (directory, lib)
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
« no previous file with comments | « tools/dartium/build.py ('k') | tools/make_links.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698