4 This file is processed by the bin/SConsDoc.py module.
5 See its __doc__ string for a discussion of the format.
9 Sets construction variables for the &zip; archiver.
25 Builds a zip archive of the specified files
27 Unlike most builder methods,
30 builder method may be called multiple times
33 adds to the list of entries
34 that will be built into the archive.
35 Any source directories will
36 be scanned for changes to
38 regardless of whether or not
40 knows about them from other Builder or function calls.
43 env.Zip('src.zip', 'src')
45 # Create the stuff.zip file.
46 env.Zip('stuff', ['subdir1', 'subdir2'])
47 # Also add "another" to the stuff.tar file.
48 env.Zip('stuff', 'another')
55 The zip compression and file packaging utility.
61 The command line used to call the zip utility,
62 or the internal Python function used to create a
67 <cvar name="ZIPCOMSTR">
69 The string displayed when archiving files
70 using the zip utility.
71 If this is not set, then &cv-link-ZIPCOM;
72 (the command line or internal Python function) is displayed.
75 env = Environment(ZIPCOMSTR = "Zipping $TARGET")
80 <cvar name="ZIPCOMPRESSION">
83 <varname>compression</varname>
86 <filename>zipfile</filename>
87 module used by the internal Python function
88 to control whether the zip archive
91 <literal>zipfile.ZIP_DEFLATED</literal>,
92 which creates a compressed zip archive.
93 This value has no effect when using Python 1.5.2
95 <literal>zipfile</literal>
96 module is otherwise unavailable.
100 <cvar name="ZIPFLAGS">
102 General options passed to the zip utility.
106 <cvar name="ZIPSUFFIX">
108 The suffix used for zip file names.