-## 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,