3 SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
4 SPDX-License-Identifier: MIT
5 SPDX-FileType: DOCUMENTATION
7 This file is processed by the bin/SConsDoc.py module.
11 <!ENTITY % scons SYSTEM '../../doc/scons.mod'>
13 <!ENTITY % builders-mod SYSTEM '../../doc/generated/builders.mod'>
15 <!ENTITY % functions-mod SYSTEM '../../doc/generated/functions.mod'>
17 <!ENTITY % tools-mod SYSTEM '../../doc/generated/tools.mod'>
19 <!ENTITY % variables-mod SYSTEM '../../doc/generated/variables.mod'>
23 <sconsdoc xmlns="http://www.scons.org/dbxsd/v1.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">
30 Sets construction variables for the &tar; archiver.
37 <item>TARSUFFIX</item>
40 <item>TARCOMSTR</item>
47 Builds a tar archive of the specified files
49 Unlike most builder methods,
52 builder method may be called multiple times
55 adds to the list of entries
56 that will be built into the archive.
57 Any source directories will
58 be scanned for changes to
60 regardless of whether or not
62 knows about them from other Builder or function calls.
66 env.Tar('src.tar', 'src')
68 # Create the stuff.tar file.
69 env.Tar('stuff', ['subdir1', 'subdir2'])
70 # Also add "another" to the stuff.tar file.
71 env.Tar('stuff', 'another')
73 # Set TARFLAGS to create a gzip-filtered archive.
74 env = Environment(TARFLAGS = '-c -z')
75 env.Tar('foo.tar.gz', 'foo')
77 # Also set the suffix to .tgz.
78 env = Environment(TARFLAGS = '-c -z',
96 The command line used to call the tar archiver.
101 <cvar name="TARCOMSTR">
104 The string displayed when archiving files
105 using the tar archiver.
106 If this is not set, then &cv-link-TARCOM; (the command line) is displayed.
110 env = Environment(TARCOMSTR = "Archiving $TARGET")
115 <cvar name="TARFLAGS">
118 General options passed to the tar archiver.
123 <cvar name="TARSUFFIX">
126 The suffix used for tar file names.