X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=SConstruct;h=05bd779b8305fdcc75f5603fbad8d05b145f836a;hp=b4895e86f28ad511cbdc216415cad622a31f047a;hb=781e18d74e018edbe47c011ab6741456138682ab;hpb=ee64b2e24b792c580ba5c0bfa38c5ed642800945 diff --git a/SConstruct b/SConstruct index b4895e8..05bd779 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 --once', +## 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})