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

Unified Diff: dart/utils/apidoc/scripts/list_files.py

Issue 10308006: Share a tool for listing dependencies thus fixing a dependency problem on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Spotted another Windows bug Created 8 years, 8 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
« dart/tools/list_files.py ('K') | « dart/utils/apidoc/apidoc.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/utils/apidoc/scripts/list_files.py
diff --git a/dart/utils/apidoc/scripts/list_files.py b/dart/utils/apidoc/scripts/list_files.py
deleted file mode 100644
index d4ef7721bd856b832a6ab7e06ea39b8fc8975caa..0000000000000000000000000000000000000000
--- a/dart/utils/apidoc/scripts/list_files.py
+++ /dev/null
@@ -1,37 +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.
-
-# Traverses apidoc and dartdoc and lists all possible input files that are
-# used when building API documentation. Used by gyp to determine when apidocs
-# need to be regenerated (see `apidoc.gyp`).
-
-# TODO(rnystrom): Port this to dart. It can be run before dart has been built
-# (which is when this script is invoked by gyp) by using the prebuild dart in
-# tools/testing/bin.
-
-import os
-import sys
-
-def handle_walk(root, directories, files, start):
- for filename in files:
- if filename.endswith((
- '.css', '.dart', '.ico', '.js', '.json', '.png', '.sh', '.txt')):
- print os.path.relpath(os.path.join(root, filename), start=start)
-
-
-def main(argv):
- if len(argv) == 1:
- dir = os.path.join(os.path.dirname(os.path.realpath(__file__)),
- os.pardir, os.pardir, os.pardir)
- else:
- dir = argv[1]
- start = os.path.join(dir, 'utils', 'apidoc')
- for root, directories, files in os.walk(os.path.join(dir, 'utils', 'apidoc')):
- handle_walk(root, directories, files, start)
- for root, directories, files in os.walk(os.path.join(dir, 'lib', 'dartdoc')):
- handle_walk(root, directories, files, start)
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
« dart/tools/list_files.py ('K') | « dart/utils/apidoc/apidoc.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698