view scripts/make_pngs.sh @ 72:095914aee329

Return True from keydown_event so that the container knows the event has been handled.
author Simon Cross <hodgestar@gmail.com>
date Sun, 11 Sep 2011 17:57:38 +0200
parents b88d5cd79fa7
children c26e36295901
line wrap: on
line source

#!/bin/bash

tilesize=20
svgdir=source/svg
pngdir=data/tiles

for subdir in common/snake lab
do
    for x in $svgdir/$subdir/*.svg
    do
        filename=`basename $x`
        filepath=$pngdir/$subdir/${filename/svg/png}
        rsvg-convert $x -w $tilesize -h $tilesize -o $filepath
        pngcrush -q $filepath tmp && mv tmp $filepath
    done
done