scripts/compression_utils
Matteo Cypriani ead9997d68 [xzize] Handle short-suffix compressed tar
- Handle short-suffix compressed Tar archives.
- Test separately if a source file exists and is regular.
- Use return value of test_extension() instead of test equality of DEST
  and SOURCE.
2010-01-31 16:24:19 +01:00
..
README [xzize] Handle short-suffix compressed tar 2010-01-31 16:24:19 +01:00
lz [compression_utils] Bug fixes on xzize 2010-01-31 15:27:39 +01:00
xzize [xzize] Handle short-suffix compressed tar 2010-01-31 16:24:19 +01:00

README

# lz and uz #

The lz script emulates and extends commands lz and uz from the mtools.

It handles: tar, tar.gz, tar.bz2, tar.xz, tar.lzma and tar.Z (and
associated 3-characters extensions: tgz, tbz, tb2, tlz, txz, taz)
through the standards options of GNU Tar.
Note that you need GNU Tar, at least version 1.20 to support LZMA
compressed archives, and version 1.22 for XZ compressed ones.

If the script name is "lz", the archive content is displayed. If the
name is "uz", it is extracted.

To install lz and uz, move put script in a directory in the PATH (for
instance /usr/local/bin) and hard link it to uz:
  cp lz /usr/local/bin
  ln /usr/local/bin/{lz,uz}


# xzize #

The xzize script compresses an uncompressed file, or recompresses a
compressed file to xz (with maximum compression level).

Known compression formats are GZip (.gz), BZip2 (.bz2), LZMA (.lzma),
and Lempel-Ziv (.Z). Short tar compressed suffixes are also allowed:
.tgz, .tbz, .tb2, .tlz, .taz.

In case of recompression, the original compressed file is keeped. 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.