martine/ninja — pull request #123 by pcc (2011-10-15 23:08:16+00:00)
Title: Add a "commands" tool

This tool performs a post-order traversal of the build graph, starting
from a list of targets specified on the command line, and for each
build statement encountered, prints the evaluated command line.
Use cases include:

- Generating input for a tool which needs to know the full command line
for every command invoked during a build. Many static analysis
and indexing tools require this information.

- Generating a build script which does not depend on Ninja.
For example, such a script could be used by Ninja to bootstrap
itself.