scripts/compression_utils
Matteo Cypriani 93601c6310 [compression_utils] Bug fixes on xzize
xzize:
- Fix bug with file names with spaces.
- Fix bug when invoking program without arguments.
- Handle error when input file is not a regular file instead of delegate
  to xz.
- Add an info message when compressing an uncompressed file.

lz:
- Info message on stdout instead of stderr when uncompressing.
2010-01-31 15:27:39 +01:00
..
README [compression_utils] Add script xzize 2010-01-31 13:13:29 +01:00
lz [compression_utils] Bug fixes on xzize 2010-01-31 15:27:39 +01:00
xzize [compression_utils] Bug fixes on xzize 2010-01-31 15:27:39 +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).

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.