mirror of
https://github.com/belluzj/fantasque-sans.git
synced 2024-12-23 07:51:30 +01:00
18 lines
458 B
Plaintext
18 lines
458 B
Plaintext
|
#!/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
|