mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
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:
@@ -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" *)
|
||||
|
||||
Reference in New Issue
Block a user