etherlab/images/genicons.sh
author Edouard Tisserant
Mon, 15 Feb 2021 15:46:47 +0100
branchsvghmi
changeset 3143 8388e6d4aa61
parent 2043 27d4cb689a79
permissions -rw-r--r--
SVGHMI: more straightforward implementation of dragging position computation in Scrollbar + some little fix about boundaries.
#!/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