2011-09-10 11:13:51 +02:00
|
|
|
#! /usr/bin/env python
|
|
|
|
# encoding: utf-8
|
2015-01-01 16:24:54 +01:00
|
|
|
# Thomas Nagy, 2005-2015 (ita)
|
2011-09-10 11:13:51 +02:00
|
|
|
|
|
|
|
VERSION='1.0.0'
|
|
|
|
APPNAME='tex_test'
|
|
|
|
|
|
|
|
top = '.'
|
|
|
|
out = 'build'
|
|
|
|
|
|
|
|
def configure(conf):
|
|
|
|
conf.load('tex')
|
|
|
|
if not conf.env.PDFLATEX:
|
|
|
|
conf.fatal('could not find the program pdflatex')
|
2014-06-20 11:40:49 +02:00
|
|
|
if not conf.env.MAKEGLOSSARIES:
|
|
|
|
conf.fatal('could not find the program makeglossaries which is absolutely required for this example')
|
2011-09-10 11:13:51 +02:00
|
|
|
|
2014-09-14 10:58:29 +02:00
|
|
|
|
|
|
|
# and example of a complex configuration test
|
|
|
|
def build_latex_test(bld):
|
|
|
|
def write_tex(tsk):
|
|
|
|
tsk.outputs[0].write(r'''\documentclass[a4paper,12pt]{article} \usepackage{ucs} \begin{document} test \end{document} ''')
|
|
|
|
bld(rule=write_tex, target='main.tex')
|
|
|
|
bld(features='tex', type='pdflatex', source='main.tex', prompt=0)
|
|
|
|
conf.test(build_fun=build_latex_test, msg='Checking for UCS', okmsg='ok', errmsg='ucs.sty is missing install latex-extras')
|
|
|
|
|
2011-09-10 11:13:51 +02:00
|
|
|
def build(bld):
|
|
|
|
bld.recurse('src')
|
|
|
|
|