2 # Copyright 2014 Jonathan Riddell <jr@jriddell.org>
3 # May be copied under the MPLv2
4 # Map breeze freedesktop named icons to libreoffice icon names
9 if os
.path
.isdir("plasma-next-icons"):
10 os
.chdir("plasma-next-icons")
11 subprocess
.check_call(["git", "pull", "-r"])
14 subprocess
.check_call(["git", "clone", "https://github.com/NitruxSA/plasma-next-icons.git"])
18 mappingFile
= open('mapping', 'r')
19 for line
in mappingFile
:
20 freeDesktopFile
= "plasma-next-icons/" + line
.rsplit(" ")[0]
21 libreOfficeFile
= line
.rsplit(" ")[1].rstrip()
22 size
= line
.rsplit(" ")[2].rstrip()
23 print(freeDesktopFile
+ " → " + libreOfficeFile
+ " @ " + size
+"x"+size
)
24 subprocess
.check_call(["ksvgtopng", size
, size
, freeDesktopFile
, libreOfficeFile
])