code: purgatorio

ref: d540dcf6834b4bec8a2d21f2fe95eccf49f97b03
dir: /man/1/zipstream/

View raw version
.TH ZIPSTREAM 1
.SH NAME
zipstream \- rewrite zip file for streaming
.SH SYNOPSIS
.B zip/zipstream
[
.B -d
] [
.B -o
]
.I zipfile
.SH DESCRIPTION
.B Zipstream
writes
.I zipfile
to standard output, placing the central directory (listing all files and their details) at the start of the file instead of at the end.
.PP
If
.B -o
is specified, a list of files is read from standard input (separated by newline) and those files moved to the start of the new zip file.
Files must be specified at most once.
Files not specified will remain in the same order, but after the files that were specified.
.PP
Option
.B -d
increases debugging output.
.SH SOURCE
.B /appl/cmd/zip/zipstream.b
.br
.B /appl/lib/zip.b
.br
.B /appl/lib/zip.m
.SH SEE ALSO
.IR getzip (1),
.IR zipfs (4)
.SH BUGS
Not all zip utilities can read zip files generated by zipstream.  Most notably Info-ZIP and 7z.
.PP
The ``end of the central directory'' (pointing to the actual central directory at the beginning) is still at the end of the file.