4 This file is processed by the bin/SConsDoc.py module.
5 See its __doc__ string for a discussion of the format.
15 Builds a tar archive of the specified files
17 Unlike most builder methods,
20 builder method may be called multiple times
23 adds to the list of entries
24 that will be built into the archive.
25 Any source directories will
26 be scanned for changes to
28 regardless of whether or not
30 knows about them from other Builder or function calls.
33 env.Tar('src.tar', 'src')
35 # Create the stuff.tar file.
36 env.Tar('stuff', ['subdir1', 'subdir2'])
37 # Also add "another" to the stuff.tar file.
38 env.Tar('stuff', 'another')
40 # Set TARFLAGS to create a gzip-filtered archive.
41 env = Environment(TARFLAGS = '-c -z')
42 env.Tar('foo.tar.gz', 'foo')
44 # Also set the suffix to .tgz.
45 env = Environment(TARFLAGS = '-c -z',
60 The command line used to call the tar archiver.
64 <cvar name="TARCOMSTR">
66 The string displayed when archiving files
67 using the tar archiver.
68 If this is not set, then &cv-link-TARCOM; (the command line) is displayed.
71 env = Environment(TARCOMSTR = "Archiving $TARGET")
76 <cvar name="TARFLAGS">
78 General options passed to the tar archiver.
82 <cvar name="TARSUFFIX">
84 The suffix used for tar file names.