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
#
5
INKSCAPE=/usr/bin/inkscape
6
SVG=assets.svg
7
LISTFILE=assets.txt
8
for filename in `cat $LISTFILE`
9
do
10
DIR=`echo $filename | cut -f1 -d '/'`
11
if [ '!' -d $DIR ];
12
then mkdir $DIR;
13
fi
14
ID=`echo $filename | tr '/' '_'`
15
$INKSCAPE $SVG -i $ID -e $filename.png
16
done
17