wscript 887 B

1234567891011121314151617181920212223242526272829
  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. # Thomas Nagy, 2005-2015 (ita)
  4. VERSION='1.0.0'
  5. APPNAME='tex_test'
  6. top = '.'
  7. out = 'build'
  8. def configure(conf):
  9. conf.load('tex')
  10. if not conf.env.PDFLATEX:
  11. conf.fatal('could not find the program pdflatex')
  12. if not conf.env.MAKEGLOSSARIES:
  13. conf.fatal('could not find the program makeglossaries which is absolutely required for this example')
  14. # and example of a complex configuration test
  15. def build_latex_test(bld):
  16. def write_tex(tsk):
  17. tsk.outputs[0].write(r'''\documentclass[a4paper,12pt]{article} \usepackage{ucs} \begin{document} test \end{document} ''')
  18. bld(rule=write_tex, target='main.tex')
  19. bld(features='tex', type='pdflatex', source='main.tex', prompt=0)
  20. conf.test(build_fun=build_latex_test, msg='Checking for UCS', okmsg='ok', errmsg='ucs.sty is missing install latex-extras')
  21. def build(bld):
  22. bld.recurse('src')