14
0
mirror of https://github.com/belluzj/fantasque-sans.git synced 2024-12-22 23:41:30 +01:00
fantasque-sans/Scripts/zip-all-variants

18 lines
458 B
Bash
Executable File

#!/usr/bin/env bash
# Create a distributable ZIP file in each variant folder
variants=$1
for variant in $(find "$variants"/* -maxdepth 0 -type d); do
name=$(basename "$variant")
cp LICENSE.txt README.md CHANGELOG.md "$variant/"
(
cd "$variant"
echo "Zipping $name"
zip -r "../FantasqueSansMono-$name.zip" * > /dev/null || exit 1
echo "Targzing $name"
tar czvf "../FantasqueSansMono-$name.tar.gz" * > /dev/null || exit 1
)
done