.\"Modified from man(1) of FreeBSD, the NetBSD mdoc.template, and mdoc.samples.
.\"See Also:
.\"man mdoc.samples for a complete listing of options
.\"man mdoc for the short list of editing options
.\"/usr/share/misc/mdoc.template
.Dd 9/2/13               \" DATE 
.Dt mulle-plist-compress 8      \" Program name and manual section number 
.Os Darwin
.Sh NAME                 \" Section Header - required - don't modify 
.Nm mulle-plist-compress
.\" The following lines are read in generating the apropos(man -k) database. Use only key
.\" words here as the database is built based on the words here and in the .ND line. 
.\" Use .Nm macro to designate other names for the documented program.
.Nd Compress and format a property list for inclusion in C code.
.Sh SYNOPSIS             \" Section Header - required - don't modify
.Nm
.Op Fl s Ar style       
.Op Fl c Ar compression
.Op Fl e Ar format
.Sh DESCRIPTION          \" Section Header - required - don't modify
Reads a 
.Em property plist 
from standard input and writes it's result to standard output. The 
.Em property list
is by default space optimized and escaped to be used in a C-String. The options are 
processed in the order s, c, e. 
.Pp                      \" Inserts a space
The following options are available:
.Bl -tag -width -indent  \" Differs from above in tag removed 
.It Fl s                 \"-s flag as a list item
Change the style of the produced property list:
.Pp
.Sy condensed
only outputs a minimal number of characters for the property list (default).
.Pp
.Sy pretty
is the output created by -[NSObject description].
.Pp
.Sy xml
produces XML property list output.
.Sy binary
produces binary property list output.
.Pp
.It Fl c                  \"-c flag as a list item
Use a binary compression method:
.Pp
.Sy none
to not compress (default), use 
.Pp
.Sy zlib
to create a zlib compressed blob.
.Pp
.It Fl e                 \"-e flag as a list item
Choose an output format:
.Pp
.Sy escaped
for inclusion into a C-String (default). Not useful in combination with compression.
.Pp
.Sy plain
for output as is.
.Pp
.Sy hex
to output in hexadecimal format for inclusion in a unsigned char C-Array.
.El                      \" Ends the list
.Pp
.Sh ENVIRONMENT      \" May not be needed
.Bl -tag -width "MULLE_PLIST_HEADER"
.It Ev MULLE_PLIST_HEADER
The contents of this environment variable are prepended to the output.
.It Ev MULLE_PLIST_FOOTER
The contents of this environment variable are appended to the output.
.El
.Sh SEE ALSO
.Xr mulle-plist-from-files 8
.Xr mulle-plist-hack 8
.Xr mulle-plist-fix 8
.Sh AUTHOR
Coded by Nat! 2013, Mulle kybernetiK. www.mulle-kybernetik.com. The latest 
version should be available at:
.Pp 
http://www.mulle-kybernetik.com/software/git/mulle-plist-utilities