X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=SConstruct;h=2b6fc67519354b2364c255f69690655b9246f34d;hp=fccd78ace7fbb18d69d4691f7a69148b41c24967;hb=1993a03662ae0fb9a0ca57d8faf5f7f810fff749;hpb=455c7501c167577b1edc2887689c458a3f18bdc7 diff --git a/SConstruct b/SConstruct index fccd78a..2b6fc67 100644 --- a/SConstruct +++ b/SConstruct @@ -12,8 +12,15 @@ DEFAULT_TARGET = 'Report.pdf' #### Defining some new builders. env = Environment() -## Context MkIV Builder: -contextBuilder = Builder(action='nice texexec --lua $SOURCE', +## Context MkIV Builder. Allow once=1 to just run once without fixing +# all references and tables. +if ARGUMENTS.get('once'): + once = ' --once' +else: + once = '' + +# Limit to 500MB of virtual memory +contextBuilder = Builder(action='ulimit -v 512000; nice texexec --lua $SOURCE%s' % once, suffix='.pdf', src_suffix='.tex') env.Append(BUILDERS={'Context': contextBuilder}) @@ -36,6 +43,7 @@ report = env.Context('Report') Depends(report, glob.glob('pret-*.lua')) Depends(report, glob.glob('Chapters/*.tex')) Depends(report, glob.glob('Utils/*.tex')) +Depends(report, glob.glob('Titlepage.tex')) AddPostAction(report, 'scp $TARGET ewi:')