Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 2053a0d9eaaf755b990f80ce4df504a7 > files > 378

waf-1.5.9-1mdv2010.0.noarch.rpm

#! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006 (ita)

def build(bld):

	# we can modify the way tex files are scanned
	#import re, tex
	#tex.tex_regexp = re.compile('^\\\\bringin{(?P<file>.*)}', re.M)

	# now create your tex object for compiling the files
	obj = bld.new_task_gen(
		features = 'tex',
		type='latex', # default is pdflatex
		source = 'document.ltx' # mandatory, the source
	)

	# optional parameters
	obj.outs   = 'ps' # we want a postscript output too - 'ps pdf' works too
	obj.prompt = 1 # put 0 for the batchmode (conceals the debug output)
	obj.deps   = 'crossreferencing.ltx' # use this to give dependencies directly