etherlab/images/genicons.sh
author Edouard Tisserant
Tue, 21 Aug 2018 16:11:02 +0200
changeset 2270 d9175daf6522
parent 2043 27d4cb689a79
permissions -rwxr-xr-x
Refactoring. Separated PLC Object, PYRO Server and MainWorker :
- PLC Object is now a Singleton, instantiated through runtime.CreatePLCObjectSingleton(...)
- Pyro server doesn't hold any reference to PLCObject, and doesn't create it anymore
- PLC Object class doesn't inherit from Pyro.ObjBase anymore
- Pyro related code moved to runtime.PyroServer.py
- MainWorker class moved to runtime/Worker.py
- Both PLC Object and MainWorker creation happens in runtime/__init__.py
2043
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     1
#!/bin/bash
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     2
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     3
INKSCAPE=inkscape
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     4
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     5
for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'` 
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     6
do
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     7
 if [ $i.png -nt icons.svg ]; then
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     8
 	echo "Skip $i"
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     9
 else
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    10
	rm  -f $i.png
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    11
	echo "$INKSCAPE" icons.svg -z -e $i.png -i $i
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    12
	"$INKSCAPE" icons.svg -z -e $i.png -i $i
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    13
 fi
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    14
done
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    15