| Index: Tools/Scripts/check-blink-deps
|
| diff --git a/Tools/Scripts/move-layout-tests b/Tools/Scripts/check-blink-deps
|
| similarity index 64%
|
| copy from Tools/Scripts/move-layout-tests
|
| copy to Tools/Scripts/check-blink-deps
|
| index 5cee8c427d7dea4f30ec58261dd631ec36fe9010..db59ac7cdde90a12c2615028f28c4bbdd658614d 100755
|
| --- a/Tools/Scripts/move-layout-tests
|
| +++ b/Tools/Scripts/check-blink-deps
|
| @@ -11,9 +11,6 @@
|
| # copyright notice, this list of conditions and the following disclaimer
|
| # in the documentation and/or other materials provided with the
|
| # distribution.
|
| -# * Neither the name of Google Inc. nor the names of its
|
| -# contributors may be used to endorse or promote products derived from
|
| -# this software without specific prior written permission.
|
| #
|
| # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| @@ -27,8 +24,30 @@
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| +"""A utility script for running Chromium's dependency checker script on Blink."""
|
| +
|
| +import os
|
| +import subprocess
|
| import sys
|
|
|
| -from webkitpy.layout_tests import layout_tests_mover
|
| +def show_help():
|
| + print 'Usage: %s [dir=Source]' % os.path.basename(sys.argv[0])
|
| +
|
| +def main():
|
| + start_dir = None
|
| + if len(sys.argv) > 1:
|
| + start_dir = sys.argv[1]
|
| +
|
| + if start_dir == '--help':
|
| + show_help()
|
| + return
|
| +
|
| + root_dir = os.path.realpath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
|
| + if not start_dir:
|
| + start_dir = os.path.join(root_dir, 'Source')
|
| +
|
| + check_deps = os.path.realpath(os.path.join(root_dir, os.pardir, os.pardir, 'tools', 'checkdeps', 'checkdeps.py'))
|
| + subprocess.call([sys.executable, check_deps, '--root', root_dir, start_dir])
|
|
|
| -sys.exit(layout_tests_mover.main(sys.argv[1:]))
|
| +if '__main__' == __name__:
|
| + main()
|
|
|