From b95f39dfdb659097af23465ec2a533a254fd4ac5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 23 Jan 2024 06:54:09 +0100 Subject: Adding upstream version 1.13~rc1. Signed-off-by: Daniel Baumann --- ChangeLog | 15 +++- INSTALL | 7 +- Makefile.in | 7 +- NEWS | 70 ++++-------------- README | 9 ++- arg_parser.cc | 2 +- arg_parser.h | 2 +- configure | 10 +-- doc/zcat.1 | 8 +-- doc/zcmp.1 | 17 ++--- doc/zdiff.1 | 19 ++--- doc/zgrep.1 | 8 +-- doc/ztest.1 | 28 ++++---- doc/zupdate.1 | 20 +++--- doc/zutils.info | 201 ++++++++++++++++++++++++---------------------------- doc/zutils.texi | 204 +++++++++++++++++++++++------------------------------ rc.cc | 4 +- rc.h | 4 +- recursive.cc | 2 +- testsuite/check.sh | 110 ++++++++++++++++++----------- zcat.cc | 6 +- zcmp.cc | 53 ++++++++------ zcmpdiff.cc | 33 +++++---- zdiff.cc | 15 ++-- zgrep.cc | 11 +-- ztest.cc | 26 +++---- zupdate.cc | 58 ++++++++------- zutils.cc | 38 +++++----- zutils.conf | 2 +- 29 files changed, 472 insertions(+), 517 deletions(-) diff --git a/ChangeLog b/ChangeLog index de510fd..05db9f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2023-12-31 Antonio Diaz Diaz + + * Version 1.13-rc1 released. + * zutils.cc (test_format): Fix detection of bzip2 with no blocks. + * rc.h (format_order): Put fmt_gz before fmt_bz2. + * zcmpdiff.cc (open_other_instream): Try also other compressed formats. + * zcmp.cc (cmp): Report EOF on empty file like GNU cmp. + * zupdate.cc: Reformat file diagnostics as 'PROGRAM: FILE: MESSAGE'. + * Replace 'verify' with 'check'. + * configure, Makefile.in: New variable 'MAKEINFO'. + 2023-01-07 Antonio Diaz Diaz * Version 1.12 released. @@ -113,7 +124,7 @@ * Version 1.3 released. * check.sh: Fix two values of expected exit status. - * zutils.texi: Document that '--format' does not verify format. + * zutils.texi: Document that '--format' does not check format. * Add two missing #includes. * Change license to GPL version 2 or later. @@ -175,7 +186,7 @@ * ztest.cc: New file implementing ztest functionality in C++. * Makefile.in: Add quotes to directory names. * check.sh: Use 'test.txt' instead of 'COPYING' for testing. - * Remove environment safeguards from configure as requested by + * configure: Remove environment safeguards as requested by Richard Stallman. Now environment variables affect configure. 2009-10-21 Antonio Diaz Diaz diff --git a/INSTALL b/INSTALL index f46086d..c6dc16b 100644 --- a/INSTALL +++ b/INSTALL @@ -20,8 +20,8 @@ gzip scripts, the recommended method is to configure gzip as follows: ./configure --program-transform-name='s/^z/gz/' This renames, at installation time, the gzip scripts and man pages to -'gzcat', 'gzcat.1', etc, avoiding the name clashing with the programs -and man pages from zutils. +'gzcat', 'gzcat.1', etc, avoiding the name clashing with the programs and +man pages from zutils. Procedure @@ -48,7 +48,8 @@ extracted from the archive. 4. Optionally, type 'make check' to run the tests that come with zutils. 5. Type 'make install' to install the programs and any data files and - documentation. + documentation. You need root privileges to install into a prefix owned + by root. Or type 'make install-compress', which additionally compresses the info manual and the man pages after installation. diff --git a/Makefile.in b/Makefile.in index fbd7102..b8984fd 100644 --- a/Makefile.in +++ b/Makefile.in @@ -66,6 +66,10 @@ zgrep.o : zgrep.cc %.o : %.cc $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< +# prevent 'make' from trying to remake source files +$(VPATH)/configure $(VPATH)/Makefile.in $(VPATH)/doc/$(pkgname).texi : ; +%.h %.cc : ; + $(objs) : Makefile $(scripts) : Makefile arg_parser.o : arg_parser.h @@ -78,7 +82,6 @@ ztest.o : arg_parser.h rc.h zutils.h recursive.cc zupdate.o : arg_parser.h rc.h recursive.cc zutils.o : rc.h zutils.h - doc : info man info : $(VPATH)/doc/$(pkgname).info @@ -106,7 +109,7 @@ $(VPATH)/doc/zgrep.1 : zgrep -o $@ --info-page=$(pkgname) ./zgrep $(VPATH)/doc/ztest.1 : ztest - help2man -n 'verify the integrity of compressed files' \ + help2man -n 'check the integrity of compressed files' \ -o $@ --info-page=$(pkgname) ./ztest $(VPATH)/doc/zupdate.1 : zupdate diff --git a/NEWS b/NEWS index eeb4662..0f83afd 100644 --- a/NEWS +++ b/NEWS @@ -1,64 +1,18 @@ -Changes in version 1.12: +Changes in version 1.13: -The zutils configuration file 'zutilsrc' has been renamed to 'zutils.conf'. -Zutils now looks for the configuration file in $XDG_CONFIG_HOME/zutils.conf -instead of $HOME/.zutilsrc. (XDG_CONFIG_HOME defaults to $HOME/.config). -(Suggested by Adam Tuja). +The detection of bzip2 files with no compressed blocks has been fixed. +(Error introduced in version 1.9). -In zcat, zcmp, zdiff, and zgrep, the option '-O, --force-format' now can -force also "uncompressed" format. +When zcat, zcmp, zdiff, or zgrep need to try compressed file names, gzip +(.gz) is now tried before bzip2 (.bz2). -zcmp now accepts the option '-H, --hexadecimal' to print byte values in -hexadecimal instead of octal. +When only one compressed file is passed to zcmp or zdiff, they now try to +compare it with a compressed file of any of the remaining formats if the +corresponding uncompressed file does not exist. -In zcmp: - The long name of option '-s' has been changed to '--script' following a - similar change made to GNU ed. +zcmp now reports EOF on empty file like GNU cmp: +"zcmp: EOF on FILE which is empty". - The short name '-q' has been assigned to options '--quiet' and '--silent'. +File diagnostics in zupdate have been reformatted as 'PROGRAM: FILE: MESSAGE'. - Option '-q' now only suppresses diagnostic messages written to stderr. - - Option '-s' now only suppresses messages about file differences written to - stdout or stderr. - - Option '-l, --list' is now different from option '-v, --verbose', which - now undoes the effect of '--quiet'. - -zcmp now prints byte and line in EOF message like GNU cmp: -"zcmp: EOF on FILE after byte B, in line L". - -zgrep now also accepts the following options: '-G, --basic-regexp', -'--label=