TTKCruncher, a fast, flex based, Javascript Cruncher.

Primary goal of this cruncher is to reduce size of TicaTK Javascript files by throwing out comments and blanks.

BUILD
-----

> make

Note : flex is needed if you modify the scanner. You may need to edit the Makefile to match your build env.

INSTALL
-------

Sorry, no "make install" for now.
Just copy ttkcrunch somewhere in your $PATH

USAGE
-----

> ./ttkcrunch  -h
TTKCruncher V0.2 (c) 2002, 2003 Coleebris
 
Usage: ttkcrunch input_files|[input_path -r [-i input_extension]] [-o output_path] [-a output_suffix] [-e output_extension] [-v] [-h]

TTKCruncher Options :
        -o arg  Define output root path
        -a arg  Define suffix to add on output file name
        -e arg  Define output file extension
        -r      Recursive mode
        -i arg  Specify input files extension, if not set, all files will be proceeded (only in recursive mode for now)
        -v      Verbose mode.
        -h      This help
        At least one option must be specified (-o, -a or -e), in order to avoid any loss of data

Typical use on TicaTK :

> cp -pr htdocs/ticatk htdocs/ticatk-crunched
> ttkcrunch htdocs/ticatk -r -o htdocs/ticatk-crunched -i js
> mv htdocs/ticatk htdocs/ticatk-original ; mv htdocs/ticatk-crunched htdocs/ticatk

Reverse with : 

> rm -r htdocs/ticatk ; mv htdocs/ticatk-original htdocs/ticatk

PERF
----

Running it on TicaTK Javascript files with a P3/600 : 

> time ttkcrunch htdocs/ticatk -r -o htdocs/ticatk-crunched -i js

TTKCruncher V0.2 (c) 2002, 2003 Coleebris
Original size : 208826 bytes, Crunched size: 122183 bytes
Average compress : 42%, Min : 25%, Max : 87%

real    0m0.065s
user    0m0.060s
sys     0m0.000s

SUPPORT
-------

Subscribe to the TicaTK mailling list (http://www.ticatk.com/)


$Revision: 1.3 $

