5 This file is processed by the bin/SConsDoc.py module.
6 See its __doc__ string for a discussion of the format.
10 <!ENTITY % scons SYSTEM '../../doc/scons.mod'>
12 <!ENTITY % builders-mod SYSTEM '../../doc/generated/builders.mod'>
14 <!ENTITY % functions-mod SYSTEM '../../doc/generated/functions.mod'>
16 <!ENTITY % tools-mod SYSTEM '../../doc/generated/tools.mod'>
18 <!ENTITY % variables-mod SYSTEM '../../doc/generated/variables.mod'>
22 <sconsdoc xmlns="http://www.scons.org/dbxsd/v1.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">
29 Sets construction variables for the &tar; archiver.
36 <item>TARSUFFIX</item>
39 <item>TARCOMSTR</item>
46 Builds a tar archive of the specified files
48 Unlike most builder methods,
51 builder method may be called multiple times
54 adds to the list of entries
55 that will be built into the archive.
56 Any source directories will
57 be scanned for changes to
59 regardless of whether or not
61 knows about them from other Builder or function calls.
65 env.Tar('src.tar', 'src')
67 # Create the stuff.tar file.
68 env.Tar('stuff', ['subdir1', 'subdir2'])
69 # Also add "another" to the stuff.tar file.
70 env.Tar('stuff', 'another')
72 # Set TARFLAGS to create a gzip-filtered archive.
73 env = Environment(TARFLAGS = '-c -z')
74 env.Tar('foo.tar.gz', 'foo')
76 # Also set the suffix to .tgz.
77 env = Environment(TARFLAGS = '-c -z',
95 The command line used to call the tar archiver.
100 <cvar name="TARCOMSTR">
103 The string displayed when archiving files
104 using the tar archiver.
105 If this is not set, then &cv-link-TARCOM; (the command line) is displayed.
109 env = Environment(TARCOMSTR = "Archiving $TARGET")
114 <cvar name="TARFLAGS">
117 General options passed to the tar archiver.
122 <cvar name="TARSUFFIX">
125 The suffix used for tar file names.