scratch-resources/bin/make-zips.sh
chrisgarrity 29f2eab750 Generate inDesign zip files at build time
* add shell script to generate zip files (it’s a little slow)
* untrack the localized-urls.json and generate that at build time too.
2017-06-14 14:45:54 -04:00

15 lines
424 B
Bash
Executable file

#!/usr/bin/env bash
# create zip files for all the indesign directories
# assumes that is it run from the root directory
echo "Generating zip files for cards."
for f in ./resources/source/cards/InDesign-files/*/; do
zip -rq "${f%/}.zip" "$f"
done
echo "Generating zip files for guides."
for f in ./resources/source/guides/InDesign-files/*/; do
zip -rq "${f%/}.zip" "$f"
done
echo "Finished generating zip files."