mirror of
https://github.com/belluzj/fantasque-sans.git
synced 2024-12-22 07:21:31 +01:00
18 lines
458 B
Bash
Executable File
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
|