From 140d836e9cd54fb67b969fd82ef7ed19ba574d40 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Sat, 26 Apr 2014 15:11:58 +0200 Subject: Imported Upstream version 2.3.1 --- src/engine/SCons/Tool/zip.xml | 80 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 69 insertions(+), 11 deletions(-) (limited to 'src/engine/SCons/Tool/zip.xml') diff --git a/src/engine/SCons/Tool/zip.xml b/src/engine/SCons/Tool/zip.xml index eb557e1..644282e 100644 --- a/src/engine/SCons/Tool/zip.xml +++ b/src/engine/SCons/Tool/zip.xml @@ -1,27 +1,49 @@ + + + +%scons; + +%builders-mod; + +%functions-mod; + +%tools-mod; + +%variables-mod; +]> + + + + Sets construction variables for the &zip; archiver. + -ZIP -ZIPFLAGS -ZIPCOM -ZIPCOMPRESSION -ZIPSUFFIX +ZIP +ZIPFLAGS +ZIPCOM +ZIPCOMPRESSION +ZIPSUFFIX -ZIPCOMSTR +ZIPCOMSTR + Builds a zip archive of the specified files and/or directories. Unlike most builder methods, @@ -38,47 +60,55 @@ any on-disk files, regardless of whether or not &scons; knows about them from other Builder or function calls. + - + env.Zip('src.zip', 'src') # Create the stuff.zip file. env.Zip('stuff', ['subdir1', 'subdir2']) # Also add "another" to the stuff.tar file. env.Zip('stuff', 'another') - + + The zip compression and file packaging utility. + + The command line used to call the zip utility, or the internal Python function used to create a zip archive. + + The string displayed when archiving files using the zip utility. If this is not set, then &cv-link-ZIPCOM; (the command line or internal Python function) is displayed. + - + env = Environment(ZIPCOMSTR = "Zipping $TARGET") - + + The compression flag @@ -93,17 +123,45 @@ which creates a compressed zip archive. This value has no effect if the zipfile module is unavailable. + + General options passed to the zip utility. + + The suffix used for zip file names. + + + + + + + +An optional zip root directory (default empty). The filenames stored +in the zip file will be relative to this directory, if given. +Otherwise the filenames are relative to the current directory of the +command. +For instance: + + +env = Environment() +env.Zip('foo.zip', 'subdir1/subdir2/file1', ZIPROOT='subdir1') + + +will produce a zip file foo.zip +containing a file with the name +subdir2/file1 rather than +subdir1/subdir2/file1. + + -- cgit v1.2.3