wscript 519 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. # Thomas Nagy, 2010 (ita)
  4. top = '.'
  5. out = '.'
  6. def configure(conf):
  7. conf.find_program('convert', var='CONVERT')
  8. conf.find_program('dia', var='DIA')
  9. def build(bld):
  10. for x in bld.path.ant_glob('*.svg'):
  11. bld(
  12. rule='${CONVERT} -density 600 ${SRC} ${TGT}',
  13. source=[x],
  14. target=x.change_ext('.png'),
  15. )
  16. for x in bld.path.ant_glob('*.dia'):
  17. bld(
  18. rule='${DIA} -t png ${SRC} -e ${TGT}',
  19. source=[x],
  20. target=x.change_ext('.png'),
  21. )
  22. def options(opt):
  23. pass