Project

General

Profile

« Previous | Next » 

Revision 14545

bugfix: lib/sh/archives.sh: compress(): don't include dir prefix in zip archive

View differences:

trunk/lib/sh/archives.sh
32 32
compress()
33 33
{
34 34
	begin_target; : "${full_file:?}"; local zip_file="$full_file.zip"
35
	zip_newer -9 "$zip_file" "$full_file"
35
	(cd "$(dirname "$full_file")" full_file zip_file
36
	zip_newer -9 "$zip_file" "$full_file")
36 37
	unzip -t "$zip_file" # only if newly created
37 38
}
38 39

  

Also available in: Unified diff