-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update IO-Compress to CPAN version 2.096
[DELTA] 2.096 31 July 2020 * Add Zip support for Zstd 508258baeeec51ba49c3c07d2dda7c19e3194985 * Add support for Zip/Unzip with XZ compression 6d240d3b3514d627a751ec82fe71f2e236301e19 3c0046e8bc65ef467b9153722609654d3ccc5bbd 2.095 19 July 2020 * Add Support for Zstandard in AnyUncompress 2.094 13 July 2020 * bin/zipdetails version 2 7acb49ff4ca67051deaffd7f988556dae0dd884b small update f5988eebc21a4d0b96e0b094e6e9bf8d3dcb1763 Better error messages for missing Zip64 records d224dcc321dd1ff120345ac3a19286ecdc79776f Add note about warning output 4caa0e5117c4c214f457d90f9a87d00772a79622 Add --version option 6c045c859d2b6bab0398833f207d7f9b803bbbab Version 2 df97743ffa1da816936e8ef504c9d561d66bb0ed Beef up some error cases 073129c4f44ebd3cc2c5381ffa824fc09b474c29 Rename a couple of unused signatures 72568c7d9edfd3e2fb6647dce6ea511e9caa186c update comment 1088199809cabb9c565ac23f065988683aacd323 Merge branch 'master' of https://github.com/pmqs/IO-Compress ad987ab95e3f3fa02fcf526736ad2da78d327460 Merge pull request #10 from fabiensanglard/master ac76d1b3d3f23077b1700778226edd68c50d81a8 fix typo 5950d7e724479f0eceffe68ae515ac117ff6a5ef Don't output "Extra Payload" if length is zero dbd3160decd9b761dbad7aaae2ec46c0173125ef Merge pull request #12 from fabiensanglard/extra 7ae4a98124c9195ca5286e3ac7d2cbe37fa2b644 Recover from bad extra subfield 3e12e62916da31c003a7273293bc32bb9a31f85f Fix typo f3a0a4717433d32743f17d40adc30e11bea60868 Fix wrong START offset 6f078dca715473276556afb0b8582bb69efa7230 Typo for Implode string "Shannon-Fano Trees" 4e25fed1a8e29518fa38f0610a5ca33ca41e9d89 some small documentation updates. 1be04bf4bd5fb023ad276ecabdbc170823bac465 Add decoder for 'Open Packaging Growth Hint' 2da58735bdbd1149863014dd08a7cea0334f52d5 update compression method 16 82a9612676ae192747b8bcbf586b09408c3b72ce Add extra fields 0x20-0x23 from APPNOTE 6.3.5 bc5e2ffbc560b236bc3be0f977ce744f2a2afbfb remove trailing whitespace 3f70119190671b00eb432e36904aa9dbb2fb8f69 minor documentation changes
- Loading branch information
Showing
35 changed files
with
1,116 additions
and
692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ use IO::Compress::Zip qw(zip | |
ZIP_CM_LZMA ); | ||
use Getopt::Long; | ||
|
||
my $VERSION = '1.0'; | ||
my $VERSION = '1.001'; | ||
|
||
my $compression_method = ZIP_CM_DEFLATE; | ||
my $stream = 0; | ||
|
@@ -63,7 +63,7 @@ sub lookupMethod | |
if ($method == ZIP_CM_LZMA) | ||
{ | ||
eval ' use IO::Compress::Adapter::Lzma'; | ||
die "Method =. LZMA needs IO::Compress::Adapter::Lzma\n" | ||
die "Method 'LZMA' needs IO::Compress::Adapter::Lzma\n" | ||
if ! defined $IO::Compress::Lzma::VERSION; | ||
} | ||
|
||
|
@@ -72,21 +72,24 @@ sub lookupMethod | |
|
||
sub Usage | ||
{ | ||
die <<EOM; | ||
streamzip [OPTIONS] | ||
print <<EOM; | ||
Usage: | ||
producer | streamzip [OPTIONS] | consumer | ||
producer | streamzip [OPTIONS] -zipfile=output.zip | ||
Stream data from stdin, compress into a Zip container, and stream to stdout. | ||
OPTIONS | ||
-zipfile=F Write zip container to the filename F | ||
-member-name=M member name [Default '-'] | ||
-zipfile=F Write zip container to the filename 'F' | ||
Outputs to stdout if zipfile not specified. | ||
-member-name=M Set member name to 'M' [Default '-'] | ||
-zip64 Create a Zip64-compliant zip file [Default: No] | ||
Use Zip64 if input is greater than 4Gig. | ||
-stream Write a streamed zip file | ||
Enable Zip64 if input is greater than 4Gig. | ||
-stream Force a streamed zip file when zipfile is also enabled. | ||
Only applies when 'zipfile' option is used. [Default: No] | ||
Always enabled when writing to stdout. | ||
-method=M Compress using method "M". | ||
Stream is always enabled when writing to stdout. | ||
-method=M Compress using method 'M'. | ||
Valid methods are | ||
store Store without compression | ||
deflate Use Deflate compression [Deflault] | ||
|
@@ -95,12 +98,13 @@ OPTIONS | |
Lzma needs IO::Compress::Lzma to be installed. | ||
-version Display version number [$VERSION] | ||
Copyright (c) 2019 Paul Marquess. All rights reserved. | ||
Copyright (c) 2019-2020 Paul Marquess. All rights reserved. | ||
This program is free software; you can redistribute it and/or | ||
modify it under the same terms as Perl itself. | ||
EOM | ||
exit; | ||
} | ||
|
||
|
||
|
@@ -116,62 +120,64 @@ streamzip - create a zip file from stdin | |
=head1 DESCRIPTION | ||
This program will read data from stdin, compress it into a zip container and, | ||
by default, write a I<streamed> zip file to stdout. No temporary files are created. | ||
This program will read data from C<stdin>, compress it into a zip container | ||
and, by default, write a I<streamed> zip file to C<stdout>. No temporary | ||
files are created. | ||
The zip container written to stdout is, by necessity, written in streaming | ||
format. Most programs that read Zip files can cope with a streamed zip file, | ||
but if interoperability is important, and your workflow allows you to write the | ||
zip file directly to disk you can create a non-streamed zip file using the C<zipfile> option. | ||
The zip container written to C<stdout> is, by necessity, written in | ||
streaming format. Most programs that read Zip files can cope with a | ||
streamed zip file, but if interoperability is important, and your workflow | ||
allows you to write the zip file directly to disk you can create a | ||
non-streamed zip file using the C<zipfile> option. | ||
=head2 OPTIONS | ||
=over 5 | ||
=item -zip64 | ||
Create a Zip64-compliant zip container. | ||
Use this option if the input is greater than 4Gig. | ||
Create a Zip64-compliant zip container. Use this option if the input is | ||
greater than 4Gig. | ||
Default is disabled. | ||
=item -zipfile=F | ||
=item -zipfile=F | ||
Write zip container to the filename F. | ||
Write zip container to the filename C<F>. | ||
Use the C<Stream> option to enable the creation of a streamed zip file. | ||
Use the C<Stream> option to force the creation of a streamed zip file. | ||
=item -member-name=M | ||
=item -member-name=M | ||
This option is used to name the "file" in the zip container. | ||
Default is '-'. | ||
=item -stream | ||
=item -stream | ||
Ignored when writing to stdout. | ||
Ignored when writing to C<stdout>. | ||
If the C<zipfile> option is specified, including this option | ||
will trigger the creation of a streamed zip file. | ||
If the C<zipfile> option is specified, including this option will trigger | ||
the creation of a streamed zip file. | ||
Default: Always enabled when writing to stdout, otherwise disabled. | ||
Default: Always enabled when writing to C<stdout>, otherwise disabled. | ||
=item -method=M | ||
=item -method=M | ||
Compress using method "M". | ||
Compress using method C<M>. | ||
Valid method names are | ||
* store Store without compression | ||
* deflate Use Deflate compression [Deflault] | ||
* bzip2 Use Bzip2 compression | ||
* lzma Use LZMA compression | ||
* lzma Use LZMA compression | ||
Note that Lzma compress needs IO::Compress::Lzma to be installed. | ||
Note that Lzma compress needs C<IO::Compress::Lzma> to be installed. | ||
Default is deflate. | ||
Default is C<deflate>. | ||
=item -version | ||
=item -version | ||
Display version number [$VERSION] | ||
|
@@ -183,12 +189,12 @@ Display help | |
=head2 When to use a Streamed Zip File | ||
A Zip file created with streaming mode enabled allows you to create a zip file | ||
in situations where you cannot seek backwards/forwards in the file. | ||
A Streamed Zip File is useful in situations where you cannot seek | ||
backwards/forwards in the file. | ||
A good examples is when you are | ||
serving dynamic content from a Web Server straight into a socket | ||
without needing to create a temporary zip file in the filesystsm. | ||
A good examples is when you are serving dynamic content from a Web Server | ||
straight into a socket without needing to create a temporary zip file in | ||
the filesystsm. | ||
Similarly if your workfow uses a Linux pipelined commands. | ||
|
@@ -203,10 +209,9 @@ L<https://rt.cpan.org/Public/Dist/Display.html?Name=IO-Compress>. | |
Paul Marquess F<[email protected]>. | ||
=head1 COPYRIGHT | ||
=head1 COPYRIGHT | ||
Copyright (c) 2019 Paul Marquess. All rights reserved. | ||
Copyright (c) 2019-2020 Paul Marquess. All rights reserved. | ||
This program is free software; you can redistribute it and/or modify it | ||
under the same terms as Perl itself. | ||
under the same terms as Perl itself. |
Oops, something went wrong.