gzip: support the --rsyncable option
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 5 Sep 2015 19:08:28 +0000 (12:08 -0700)
committerJim Meyering <meyering@fb.com>
Wed, 2 Mar 2016 16:58:14 +0000 (08:58 -0800)
commitd6d48f427b4839352437be9688142f6733028d22
treee8a5def9fa5a46898536bbfe61c430eeea39f93f
parent9860eb784749f8588346850e693d7460e5be1601
gzip: support the --rsyncable option

* deflate.c: Include verify.h.
(RSYNC_WIN, RSYNC_SUM_MATCH): Define.
(rsync_sum, rsync_chunk_end): Declare file-scoped globals.
(lm_init): Initialize globals.
(fill_window): Update rsync_chunk_end.
(rsync_roll): New function.
(RSYNC_ROLL): New macro.
(FLUSH_BLOCK): Update for new "pad" parameter.
(deflate_fast): Use RSYNC_ROLL and flush/pad.
(deflate): Likewise.
* trees.c (flush_block): Add "pad" parameter.
* gzip.c (rsync): New global.
(RSYNCABLE_OPTION, longopts, help): Add the option.
(main): Set the new global.
* gzip.h (rsync): Declare new global.
(flush_block): Update prototype.
* doc/gzip.texi: Document it.
* gzip.1: Likewise.
* bootstrap.conf: Use verify module.
* NEWS (New feature): Mention it.
* Makefile.am (check-local): Add tests and use AM_V__* command-
hiding opions. Reported against Debian here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=118118
Makefile.am
NEWS
bootstrap.conf
deflate.c
doc/gzip.texi
gzip.1
gzip.c
gzip.h
trees.c