gen_gallery.py: quick hack to generate HTML gallery of patches

This commit is contained in:
Jon Dowland 2008-02-18 19:34:06 +00:00
parent 48265abede
commit e9335e30d6

15
tools/gen_gallery.py Normal file
View file

@ -0,0 +1,15 @@
#!/usr/bin/python
import os,sys,re
# this sucks
patches = [ x for x in os.listdir('.') if re.match(r'.*\.gif$', x) ]
print '''<style type="text/css">
div {
float: left;
width: 20%;
}
</style>
'''
print ''.join(['<div><img src="%s" /><br />%s</div>' % (x,x) for x in patches])