etherlab/images/genicons.sh
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 07 Sep 2018 20:58:13 +0000
changeset 2304 68e6649039a5
parent 2043 27d4cb689a79
permissions -rwxr-xr-x
Merged in yegorich/beremiz/py3-fix (pull request #36)

Use Python 3 compatible syntax for exceptions
#!/bin/bash

INKSCAPE=inkscape

for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'` 
do
 if [ $i.png -nt icons.svg ]; then
 	echo "Skip $i"
 else
	rm  -f $i.png
	echo "$INKSCAPE" icons.svg -z -e $i.png -i $i
	"$INKSCAPE" icons.svg -z -e $i.png -i $i
 fi
done