[archivers] xzize: improve doc

This commit is contained in:
Matteo Cypriani 2019-10-28 16:20:12 +01:00
parent 718768755c
commit 4147272b47
2 changed files with 14 additions and 11 deletions

View File

@ -43,11 +43,13 @@ compressed file to XZ (with default compression level).
Known compression formats are GZip (.gz), BZip2 (.bz2), LZMA (.lzma), and Known compression formats are GZip (.gz), BZip2 (.bz2), LZMA (.lzma), and
Lempel-Ziv (.Z). Short tar compressed suffixes are also allowed: .tgz, .tbz, Lempel-Ziv (.Z). Short tar compressed suffixes are also allowed: .tgz, .tbz,
.tb2, .tlz, .taz. .tb2, .tlz, .taz (and the output file's extension will be .txz).
In case of recompression, the original compressed file is kept. In case of In case of recompression, the original compressed file is kept (so you can
compression (i.e. when the suffix of the file does not correspond to a known compare input and output file sizes and decide to keep the original or the
compression format), the original uncompressed file is removed. recompressed file). In case of compression (i.e. when the suffix of the file
does not correspond to a known compression format), the original uncompressed
file is removed.
**Note**: the atool package provides the `arepack` command, which can **Note**: the atool package provides the `arepack` command, which can
recompress to several formats and not only to XZ. `xzize` has the advantage to recompress to several formats and not only to XZ. `xzize` has the advantage to

View File

@ -8,13 +8,14 @@
# To Public License, Version 2, as published by Sam Hocevar. See # To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details. # http://sam.zoy.org/wtfpl/COPYING for more details.
# #
# This script recompresses to XZ (with maximum compression level) a # This script recompresses to XZ one or several GZip (.gz, .tgz), BZip2 (.bz2,
# GZip (.gz, .tgz), BZip2 (.bz2, .tbz, .tb2), LZMA (.lzma, .tlz), and # .tbz, .tb2), LZMA (.lzma, .tlz), or Lempel-Ziv (.Z, .taz) compressed file(s).
# Lempel-Ziv (.Z, .taz) compressed file. The original file is keeped. # The original files are kept.
# If the file extension does not correspond to a known compression #
# format, the file is compressed to XZ. In that case, the original # If a file extension does not correspond to a known compression format, that
# file is removed. # file is compressed to XZ. In that case, the original file is removed.
# If the file is already XZ compressed (.xz, .txz), nothing is done. #
# If the file is already XZ-compressed (.xz, .txz), nothing is done.
#set -x #set -x
set -u set -u