| Index: sky/engine/bindings-dart/dart/gyp/scripts/dart_html_lib_deps.py
|
| diff --git a/sky/tools/lint_test_expectations b/sky/engine/bindings-dart/dart/gyp/scripts/dart_html_lib_deps.py
|
| old mode 100755
|
| new mode 100644
|
| similarity index 63%
|
| copy from sky/tools/lint_test_expectations
|
| copy to sky/engine/bindings-dart/dart/gyp/scripts/dart_html_lib_deps.py
|
| index c56eb77dbb04628a711330f4a0c63dfd55f8343a..ff534f0dec08fd619862944877304abed3226bc1
|
| --- a/sky/tools/lint_test_expectations
|
| +++ b/sky/engine/bindings-dart/dart/gyp/scripts/dart_html_lib_deps.py
|
| @@ -1,4 +1,5 @@
|
| -#!/usr/bin/env python
|
| +#!/usr/bin/python
|
| +#
|
| # Copyright (C) 2012 Google Inc. All rights reserved.
|
| #
|
| # Redistribution and use in source and binary forms, with or without
|
| @@ -26,12 +27,39 @@
|
| # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +#
|
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
|
|
| +
|
| +import fnmatch
|
| +import os
|
| import sys
|
|
|
| -from webkitpy.common import version_check
|
| -from webkitpy.layout_tests import lint_test_expectations
|
|
|
| +def printAllFilesRecursively(directory, pattern):
|
| + def matches(basename): return fnmatch.fnmatch(basename, pattern)
|
| + for root, _, files in os.walk(directory):
|
| + for basename in filter(matches, files):
|
| + # gyp operates correctly only on /, not Windows \.
|
| + print os.path.join(root, basename).replace(os.sep, '/')
|
| +
|
| +
|
| +
|
| +def main(args):
|
| + dart_html_lib_dir = args[1]
|
| +
|
| + deps = [
|
| + ('idl', '*.idl'),
|
| + ('scripts', '*.py'),
|
| + ('src', '*.dart'),
|
| + ('templates', '*.*template'),
|
| + ]
|
| +
|
| + for directory, pattern in deps:
|
| + printAllFilesRecursively(os.path.join(dart_html_lib_dir, directory), pattern)
|
|
|
| -sys.exit(lint_test_expectations.main(sys.argv[1:], sys.stdout, sys.stderr))
|
|
|
| +if __name__ == '__main__':
|
| + sys.exit(main(sys.argv))
|
|
|