[Klone-users] parameters into kloned

Stefano Barbato barbato at koanlogic.com
Wed Aug 1 11:03:20 EDT 2007


On Aug 1, 2007, at 4:10 PM, Mark Richards wrote:

>
> I thought (incorrectly) that anything not compiled or referenced would 
> not be included.  I was wrong.  Plus forgot about image files.

By default (to make it simple) Klone imports the whole directory but 
you can tweak the list of files imported using the KLONE_IMPORT_ARGS 
variable in the top-level Makefile (the same way you did to exclude CVS 
files and directories adding a -x "file_pattern").

This exclude all backup stuff and "old" files:

KLONE_IMPORT_ARGS = -v -x '*/backup/*' -x '*.old'


>
> [root at dev1 www]# ls images/ -ltr
> total 112
> -rwxrwxrwx 1 root root  5106 May 18 22:33 UpArrow.gif
> -rwxrwxrwx 1 root root  6430 May 18 22:33 topview.gif
> -rwxrwxrwx 1 root root 24684 May 18 22:33 gears.gif
> -rwxrwxrwx 1 root root  5101 May 18 22:33 DnArrow.gif
> -rwxrwxrwx 1 root root 47826 Jun  6 11:46 kl_bg.png
> -rwxrwxrwx 1 root root 10415 Jun 23 15:54 aemlogo.jpg
> [root at dev1 www]#

> I guess the rest is because I'm including sqlite3 and many pieces from 
> another large shared library plus those image files which I need to 
> seriously compress!

Dynamic libraries overhead in term of bytes should be very low, but 
images are imported *as is* because Klone doesn't even try to compress 
already compressed images (you can force compression on any file using 
the -Z "pattern" flag inthe KLONE_IMPORT_ARGS var).

For example if you remove all images from your current configuration 
you should get a kloned file 202KB big. BTW do you really use kl_bg.png 
file? :-)

bye!
stefano




More information about the klone-users mailing list