source: vibrancy-colors/trunk/fuentes/vibrancy-lliurex/build.py @ 2317

Last change on this file since 2317 was 2317, checked in by hectorgh, 3 years ago

wip

  • Property svn:executable set to *
File size: 519 bytes
Line 
1#!/usr/bin/env python
2
3import subprocess
4import os
5import glob
6
7sizes=[16,22,24,32,48,64,96,256]
8
9dirs=["apps","categories"]
10
11
12print "* Building lliurex icons..."
13for dir in dirs:
14        DST_DIR="build/"+ dir + "/"
15        for sz in sizes:
16                tmp=DST_DIR+str(sz)
17                if not os.path.exists(tmp):
18                        os.makedirs(tmp)
19       
20                for f in  glob.glob("vibrancy-lliurex/"+dir+"/*.svg"):
21
22                        subprocess.Popen(["rsvg-convert","--width="+str(sz),"--height="+str(sz),"-o",tmp+"/"+os.path.basename(f).replace(".svg",".png"),f])
23
24os.system("ls -la")
25                       
Note: See TracBrowser for help on using the repository browser.