mirror of
https://github.com/scratchfoundation/scratch-resources.git
synced 2025-06-05 18:03:53 -04:00
* add shell script to generate zip files (it’s a little slow) * untrack the localized-urls.json and generate that at build time too.
15 lines
424 B
Bash
Executable file
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."
|