diff options
author | Craig Scott <craig.scott@crascit.com> | 2020-06-27 08:36:16 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2020-06-27 08:38:28 (GMT) |
commit | 95159b7dea20c65e3c1d9b112cd4c5f4646b6a97 (patch) | |
tree | ead3bf8fa2d87b397d1b38bd53e57ee113588105 /Help/command | |
parent | bc45bdc8193145fcd509a4da9b4095278a6a81ba (diff) | |
download | CMake-95159b7dea20c65e3c1d9b112cd4c5f4646b6a97.zip CMake-95159b7dea20c65e3c1d9b112cd4c5f4646b6a97.tar.gz CMake-95159b7dea20c65e3c1d9b112cd4c5f4646b6a97.tar.bz2 |
file(ARCHIVE_CREATE): Rename TYPE option to COMPRESSION
Fixes: #20883
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/file.rst | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst index 787a751..b109f9d 100644 --- a/Help/command/file.rst +++ b/Help/command/file.rst @@ -903,28 +903,30 @@ Archiving [FILES <files>] [DIRECTORY <dirs>] [FORMAT <format>] - [TYPE <type>] + [COMPRESSION <compression>] [MTIME <mtime>] [VERBOSE]) -Creates an archive specifed by ``OUTPUT`` with the content of ``FILES`` and -``DIRECTORY``. +Creates the specified ``<archive>`` file with the content of ``<files>`` and +``<dirs>``. -To specify the format of the archive set the ``FORMAT`` option. -Supported formats are: ``7zip``, ``gnutar``, ``pax``, ``paxr``, ``raw``, -(restricted pax, default), and ``zip``. +Use the ``FORMAT`` option to specify the archive format. Supported values +for ``<format>`` are ``7zip``, ``gnutar``, ``pax``, ``paxr``, ``raw`` and +``zip``. If ``FORMAT`` is not given, the default format is ``paxr``. -To specify the type of compression set the ``TYPE`` option. -Supported compression types are: ``None``, ``BZip2``, ``GZip``, ``XZ``, -and ``Zstd``. +Some archive formats allow the type of compression to be specified. +The ``7zip`` and ``zip`` archive formats already imply a specific type of +compression. The other formats use no compression by default, but can be +directed to do so with the ``COMPRESSION`` option. Valid values for +``<compression>`` are ``None``, ``BZip2``, ``GZip``, ``XZ``, and ``Zstd``. .. note:: With ``FORMAT`` set to ``raw`` only one file will be compressed with the - compression type specified by ``TYPE``. + compression type specified by ``COMPRESSION``. -With ``VERBOSE`` the command will produce verbose output. +The ``VERBOSE`` option enables verbose output for the archive operation. -To specify the modification time recorded in tarball entries use +To specify the modification time recorded in tarball entries, use the ``MTIME`` option. .. _ARCHIVE_EXTRACT: |