#!/usr/bin/env python # Copyright 2014 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. '''Produces various output formats from a set of JavaScript files with closure style require/provide calls. Scans one or more directory trees for JavaScript files. Then, from a given list of top-level files, sorts all required input files topologically. The top-level files are appended to the sorted list in the order specified on the command line. If no root directories are specified, the source files are assumed to be ordered already and no dependency analysis is performed. The resulting file list can then be used in one of the following ways: - list: a plain list of files, one per line is output. - html: a series of html