treil is a utility which produces an image of tiles from a tree structure. Each node of the tree is mapped to a rectangle whose dimension is calculated from the node value. The primary use of treil is to display directory trees under version control.
The name "treil" is the result of the following Ruby expression.
("tree" + "tile").split(//).uniq.join
While the libraries listed below are optional, either rcairo or Ruby/GD is required.
$ sudo apt-get install ruby1.8-dev libgd-ruby1.8 libcairo-ruby1.8 libhtree-ruby1.8 $ ./configure $ make $ sudo make install
$ treil /usr/src/linux linux.png
$ svn co http://svn.python.org/projects/python/trunk python $ treil python python.png # This produces colorful output.