waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

wscript (742B)


      1 #! /usr/bin/env python
      2 # encoding: utf-8
      3 # Thomas Nagy, 2006-2010 (ita)
      4 
      5 def build(bld):
      6 
      7 	# we can modify the way tex files are scanned
      8 	#import re, tex
      9 	#tex.tex_regexp = re.compile('^\\\\bringin{(?P<file>.*)}', re.M)
     10 
     11 	# now create your tex object for compiling the files
     12 	obj = bld(
     13 		features = 'tex',
     14 		type = 'latex', # default is pdflatex
     15 		source = 'document.ltx' # mandatory, the source
     16 	)
     17 
     18 	# optional parameters
     19 	obj.outs   = 'ps' # we want a postscript output too - 'ps pdf' works too
     20 	obj.prompt = 1 # put 0 for the batchmode (conceals the debug output)
     21 	obj.deps   = 'wscript crossreferencing.ltx' # use this to give dependencies directly
     22 
     23 	# or more simply, for a pdf..
     24 	bld(features='tex', source='document-glossaries.ltx')
     25