mirror of
https://github.com/dh1tw/iso-country-flags-svg-collection-1.git
synced 2025-12-06 03:42:01 +01:00
34 lines
615 B
Bash
34 lines
615 B
Bash
|
|
#!/bin/sh
|
||
|
|
|
||
|
|
BGS="LightGrey White Black Transparent"
|
||
|
|
|
||
|
|
echo "Generating sheets .."
|
||
|
|
|
||
|
|
for f in $(cd build; ls -d1 png-*); do
|
||
|
|
echo -n " processing build/$f";
|
||
|
|
|
||
|
|
for res in $(cd build/$f; ls -d1 res-*); do
|
||
|
|
echo "/$res";
|
||
|
|
|
||
|
|
for bg in $BGS; do
|
||
|
|
# echo " $bg";
|
||
|
|
OUTPD="build/$f/sheets";
|
||
|
|
FLAGS="build/$f/$res/??.png";
|
||
|
|
SHEET="$OUTPD/Sheet-$bg-$res.png";
|
||
|
|
|
||
|
|
mkdir -p $OUTPD;
|
||
|
|
echo " $SHEET";
|
||
|
|
|
||
|
|
montage \
|
||
|
|
-limit memory 64 -limit map 128 \
|
||
|
|
-font DroidSans-Bold.ttf \
|
||
|
|
-pointsize 8 \
|
||
|
|
$FLAGS \
|
||
|
|
-label "%f" \
|
||
|
|
-fill Black \
|
||
|
|
-background $bg \
|
||
|
|
$SHEET;
|
||
|
|
done
|
||
|
|
done
|
||
|
|
done
|
||
|
|
echo "done."
|