[Klone-users] Compression with -z KLONE_IMPORT_ARGS
Stefano Barbato
barbato at koanlogic.com
Thu May 22 04:44:56 EDT 2008
Hi,
> *** Question 1 ***
> I enter "make import-help" to know the specifies of "-z" and "-Z"
> option.
> What are files "all compressable content (based on MIME types)" for
> "-z" option ?
> Can I have a lot of file extensions in the "pattern" for "-Z"
> option ? Ex : "*.js;*.gif"
common mime types are hardcoded in mime_map.c; if you want to provide
your own set of file extensions you can use the -Z argument multiple
times:
KLONE_IMPORT_ARGS = -Z *.ext0 -Z *.ext1 -Z *.ext2
Note that -Z and -z should be used separately (but this is not
enforced but the code).
> *** Question 2 ***
> What is the compression ratio used by the "-z" and "-Z" options?
> Can I parameter this compression ratio?
the default libz value is used (Z_DEFAULT_COMPRESSION, see the
codec_gzip object, gzip.c); this is not user-modifiable at the moment.
bye!
s
On 22/mag/08, at 09:48, Mickael Auger wrote:
> Hi,
>
> I use :
> - KLone 2.1.1rc0
> - uClinux with m68k
>
> I would like compress my web pages (.js, image, .css ...).
> I add the "KLONE_IMPORT_ARGS = -z" on the main makefile and I add
> the "-lz" option in "LDFLAGS" variable on my toolchain.
> I have two questions concerning the compression :
>
> *** Question 1 ***
> I enter "make import-help" to know the specifies of "-z" and "-Z"
> option.
> What are files "all compressable content (based on MIME types)" for
> "-z" option ?
> Can I have a lot of file extensions in the "pattern" for "-Z"
> option ? Ex : "*.js;*.gif"
>
>
> *** Question 2 ***
> What is the compression ratio used by the "-z" and "-Z" options?
> Can I parameter this compression ratio?
>
>
> Thanks.
>
> --
> Mickaël AUGER
> mickael.auger at gmail.com
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
More information about the Klone-users
mailing list