render-bits.sh
Bourne-Again shell script, ASCII text executable
1#! /bin/bash 2# 3# Yeah this script is pretty bad and ugly, so? 4# 5INKSCAPE=/usr/bin/inkscape 6SVG=assets.svg 7LISTFILE=assets.txt 8for filename in `cat $LISTFILE` 9do 10DIR=`echo $filename | cut -f1 -d '/'` 11if [ '!' -d $DIR ]; 12then mkdir $DIR; 13fi 14ID=`echo $filename | tr '/' '_'` 15$INKSCAPE $SVG -i $ID -e $filename.png 16done 17