etherlab/images/genicons.sh
author Edouard Tisserant
Wed, 15 Dec 2021 11:56:34 +0100
branchRuntimeLists
changeset 3396 8c8cb5c9ff38
parent 2043 27d4cb689a79
permissions -rw-r--r--
Runtime: Now retain uses a list based on data available in VARIABLES.csv instead of traversing the whole instance tree looking for RETAIN flag.
#!/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