bump product version to 5.0.4.1
[LibreOffice.git] / icon-themes / breeze / update-icons.py
blob81014d295d2361c2b2e8b16aff711fd815277886
1 #!/usr/bin/python3
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
6 import os
7 import subprocess
9 if os.path.isdir("plasma-next-icons"):
10 os.chdir("plasma-next-icons")
11 subprocess.check_call(["git", "pull", "-r"])
12 os.chdir("..")
13 else:
14 subprocess.check_call(["git", "clone", "https://github.com/NitruxSA/plasma-next-icons.git"])
16 mapping = {}
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])