iso-country-flags-svg-colle.../scripts/sheets.sh
Jakob Flierl d4ef0d759d fix
2011-12-18 20:31:39 +01:00

36 lines
667 B
Bash
Executable file

#!/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/$bg-$res.png";
RES=`echo $res | sed s/^res-//g`
mkdir -p $OUTPD;
echo " $SHEET";
montage \
-limit memory 64 -limit map 128 \
-font DroidSans-Bold.ttf \
-pointsize 8 \
-geometry $RES! \
$FLAGS \
-label "%f" \
-fill Black \
-background $bg \
$SHEET;
done
done
done
echo "done."