docs: Sync man pages & --help output

Version: xz-5.1.2-5alpha
Resolves: #948533
This commit is contained in:
Pavel Raiskup 2013-04-09 12:47:28 +02:00
parent 8ead555867
commit e01a5abdb7
2 changed files with 92 additions and 1 deletions

View File

@ -0,0 +1,81 @@
diff --git a/src/xz/message.c b/src/xz/message.c
index abbd171..ce953ac 100644
--- a/src/xz/message.c
+++ b/src/xz/message.c
@@ -1110,7 +1110,8 @@ message_help(bool long_help)
puts(_(
" -z, --compress force compression\n"
-" -d, --decompress force decompression\n"
+" -d, --decompress, --uncompress\n"
+" force decompression\n"
" -t, --test test compressed file integrity\n"
" -l, --list list information about .xz files"));
@@ -1120,7 +1121,8 @@ message_help(bool long_help)
puts(_(
" -k, --keep keep (don't delete) input files\n"
" -f, --force force overwrite of output file and (de)compress links\n"
-" -c, --stdout write to standard output and don't delete input files"));
+" -c, --stdout, --to-stdout\n"
+" write to standard output and don't delete input files"));
if (long_help) {
puts(_(
@@ -1152,6 +1154,10 @@ message_help(bool long_help)
" -e, --extreme try to improve compression ratio by using more CPU time;\n"
" does not affect decompressor memory requirements"));
+ puts(_(
+" -T, --threads=NUM use at most NUM threads; the default is 1; set to 0\n"
+" to use the number of processor cores"));
+
if (long_help) {
// FIXME? Mention something about threading?
puts(_(
@@ -1166,7 +1172,7 @@ message_help(bool long_help)
puts(_( // xgettext:no-c-format
" --memlimit-compress=LIMIT\n"
" --memlimit-decompress=LIMIT\n"
-" -M, --memlimit=LIMIT\n"
+" -M, --memlimit=LIMIT, (old alias --memory=LIMIT)\n"
" set memory usage limit for compression, decompression,\n"
" or both; LIMIT is in bytes, % of RAM, or 0 for defaults"));
diff --git a/src/xz/xz.1 b/src/xz/xz.1
index 0368f05..e5da140 100644
--- a/src/xz/xz.1
+++ b/src/xz/xz.1
@@ -912,7 +912,7 @@ See
for possible ways to specify the
.IR limit .
.TP
-\fB\-M\fR \fIlimit\fR, \fB\-\-memlimit=\fIlimit\fR, \fB\-\-memory=\fIlimit
+\fB\-M\fR \fIlimit\fR, \fB\-\-memlimit=\fIlimit\fR, (old alias \fB\-\-memory=\fIlimit\fR)
This is equivalent to specifying \fB\-\-memlimit\-compress=\fIlimit
\fB\-\-memlimit\-decompress=\fIlimit\fR.
.TP
diff --git a/src/xzdec/xzdec.c b/src/xzdec/xzdec.c
index b7830db..48ac1fe 100644
--- a/src/xzdec/xzdec.c
+++ b/src/xzdec/xzdec.c
@@ -64,13 +64,15 @@ help(void)
"Usage: %s [OPTION]... [FILE]...\n"
"Uncompress files in the ." TOOL_FORMAT " format to the standard output.\n"
"\n"
-" -c, --stdout (ignored)\n"
-" -d, --decompress (ignored)\n"
-" -k, --keep (ignored)\n"
" -q, --quiet specify *twice* to suppress errors\n"
-" -Q, --no-warn (ignored)\n"
" -h, --help display this help and exit\n"
" -V, --version display the version number and exit\n"
+" -c, --stdout, --to-stdout\n"
+" ignored, data are always written to standard output\n"
+" -d, --decompress, --uncompress\n"
+" ignored, only decompression is supported\n"
+" -k, --keep ignored, we never create/remove any files\n"
+" -Q, --no-warn ignored, we never use exit status 2\n"
"\n"
"With no FILE, or when FILE is -, read standard input.\n"
"\n"

12
xz.spec
View File

@ -3,7 +3,7 @@
Summary: LZMA compression utilities
Name: xz
Version: 5.1.2
Release: 4alpha%{?dist}
Release: 5alpha%{?dist}
License: LGPLv2+
Group: Applications/File
# official upstream release
@ -14,6 +14,11 @@ URL: http://tukaani.org/%{name}/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: %{name}-libs = %{version}-%{release}
# partly upstream/partly not (yet?)
# ~> proposal: http://www.mail-archive.com/xz-devel@tukaani.org/msg00153.html
# ~> #948533
Patch0: xz-5.1.2alpha-man-page-day.patch
%description
XZ Utils are an attempt to make LZMA compression easy to use on free (as in
freedom) operating systems. This is achieved by providing tools and libraries
@ -66,6 +71,8 @@ commands that deal with the older LZMA format.
%prep
%setup -q -a1 -n %{name}-%{version}alpha
%patch0 -p1 -b .man-page-day
for i in `find . -name config.sub`; do
perl -pi -e "s/ppc64-\*/ppc64-\* \| ppc64p7-\*/" $i
done
@ -138,6 +145,9 @@ rm -rf %{buildroot}
%{_mandir}/man1/*lz*
%changelog
* Tue Apr 09 2013 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-5alpha
- fix manual page inconsistencies with help output (private #948533)
* Thu Feb 21 2013 Karsten Hopp <karsten@redhat.com> 5.1.2-4alpha
- add support for ppc64p7 arch (Power7 optimized)