treil

English, Japanese
Daiki Ueno > Software > treil

treil
[Click here for larger image]

About

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

Download

Requirements

While the libraries listed below are optional, either rcairo or Ruby/GD is required.

Installation

 $ sudo apt-get install ruby1.8-dev libgd-ruby1.8 libcairo-ruby1.8 libhtree-ruby1.8
 $ ./configure
 $ make
 $ sudo make install

Usage

Input from an ordinary directory

 $ treil /usr/src/linux linux.png

Input from a Subversion working copy

 $ svn co http://svn.python.org/projects/python/trunk python
 $ treil python python.png # This produces colorful output.

Copyright (c) 2006,2007,2008 Daiki Ueno
$Id: index.html.en,v 1.9 2008/02/04 06:37:33 ueno Exp $