etherlab/images/genicons.sh
author Edouard Tisserant
Thu, 16 Feb 2023 12:13:16 +0100
changeset 3726 516779f11803
parent 2043 27d4cb689a79
permissions -rw-r--r--
runtime: Change Linux target to use clock_nanosleep instead of timer (better rt-preempt perf).
#!/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