Revision 14541
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/archives.sh | ||
---|---|---|
32 | 32 |
compress() |
33 | 33 |
{ |
34 | 34 |
begin_target; : "${full_file:?}"; local zip_file="$full_file.zip" |
35 |
stdout="$zip_file" to_file compress__zip_and_test |
|
36 |
} |
|
37 |
compress__zip_and_test() |
|
38 |
{ |
|
39 |
zip -9 <"$full_file" |
|
35 |
zip_newer -9 "$zip_file" "$full_file" |
|
40 | 36 |
unzip -t "$zip_file" # only if newly created |
41 | 37 |
} |
42 | 38 |
|
Also available in: Unified diff
bugfix: lib/sh/archives.sh: compress(): need to use zip's path syntax to avoid the file in the archive being named "-"