blob: 22c4afc96e91a5d3e3d8e244bf69fbbc2acf6f6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#! /bin/bash
#
# Yeah this script is pretty bad and ugly, so?
#
INKSCAPE=/usr/bin/inkscape
SVG=adwaita-bits.svg
LISTFILE=bits-list.txt
for filename in `cat $LISTFILE`
do
DIR=`echo $filename | cut -f1 -d '/'`
if [ '!' -d $DIR ];
then mkdir $DIR;
fi
ID=`echo $filename | tr '/' '_'`
$INKSCAPE $SVG -i $ID -e $filename.png
done
|