Sophie

Sophie

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

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

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

# the following two variables are used by the target "waf dist"
VERSION='0.0.9'
APPNAME='tex_test'

# these variables are mandatory,
srcdir = '.'
blddir = 'build'

def set_options(opt):
	pass

def configure(conf):
	conf.check_tool('tex')

def build(bld):
	bld.add_subdirs('src')

# Using variants for building ps and pdf at the same time
# assuming that all files are in the current directory

#def build(bld):
#	# the ps and pdf files cannot share their intermediate files
#	# separate build dirs are necessary
#
#	# build a pdf file in the default directory
#	obj = bld.new_task_gen('tex', type='pdflatex')
#	obj.source = 'document.ltx'
#	obj.outs = 'pdf'
#
#	# build a ps file in the variant
#	psenv = bld.env_of_name('psdir')
#	obj = bld.new_task_gen('tex', type='latex')
#	obj.source = 'document.ltx'
#	obj.outs = 'ps'
#	obj.env = psenv

#def configure(conf):
#	conf.check_tool('Tex')
#
#	# set a variant called "psdir"
#	env_variant2 = conf.env.copy()
#	conf.set_env_name('psdir', env_variant2)
#	env_variant2.set_variant('psdir')
#	conf.setenv('psdir')