zip the output images after creating them

Change-Id: I07eb8cc030c33ab3ff41eb0f894771eb3ea3962a

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/3307007
This commit is contained in:
Bill Richardson
2010-09-02 16:16:25 -07:00
parent 1fe1607679
commit 34b446073e

View File

@@ -39,9 +39,10 @@ img_txt_b="${tmpdir}/img_txt_b.bmp"
label_file="${tmpdir}/label.txt"
# Output directories
outdir_a=$(dirname $0)/out_${geom_crop_a}
thisdir=$(readlink -e $(dirname $0))
outdir_a=${thisdir}/out_${geom_crop_a}
[ -d "$outdir_a" ] || mkdir -p "$outdir_a"
outdir_b=$(dirname $0)/out_${geom_crop_b}
outdir_b=${thisdir}/out_${geom_crop_b}
[ -d "$outdir_b" ] || mkdir -p "$outdir_b"
@@ -107,3 +108,7 @@ function process_one_file {
for file in originals/*.gif; do
process_one_file "$file"
done
# Zip up the bitmaps
(cd "$outdir_a" && zip -qr "${thisdir}/out_${geom_crop_a}.zip" *)
(cd "$outdir_b" && zip -qr "${thisdir}/out_${geom_crop_b}.zip" *)