X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildscripts%2Fgenicon.py;h=543735240fea9542c7931c4a99dd978e85b8fa63;hb=5c283c1e1a704754f459406e7d81ee36d40dbf0b;hp=f65e9f91cc3173c6c7dc6a2b7bad34b6ee2c7112;hpb=f79f5137e152dc1e7d3a3062c365e67cf39b3a43;p=lilypond.git diff --git a/buildscripts/genicon.py b/buildscripts/genicon.py index f65e9f91cc..543735240f 100644 --- a/buildscripts/genicon.py +++ b/buildscripts/genicon.py @@ -13,19 +13,19 @@ os.mkdir (dir, 0777) os.chdir(dir) def system (c): - print c - if os.system (c): - raise 'barf' + print c + if os.system (c): + raise 'barf' outputs = [] for sz in [48,32,16] : - - for depth in [24,8]: - out = '%(base)s-%(sz)d-%(depth)d.png' % locals() - system ('convert -depth %(depth)d -sample %(sz)d %(input)s %(out)s' % - locals ()) - outputs.append (out) - + + for depth in [24,8]: + out = '%(base)s-%(sz)d-%(depth)d.png' % locals() + system ('convert -depth %(depth)d -sample %(sz)d %(input)s %(out)s' % + locals ()) + outputs.append (out) + system('icotool --output %s --create %s' % (output, ' '.join (outputs))) -system('rm -rf %(dir)s' % locals()) +system('rm -rf %(dir)s' % locals())