projects
/
matthijs
/
master-project
/
report.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c731d6
)
Allow passing a once option to scons.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Sat, 5 Dec 2009 17:19:06 +0000
(18:19 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Sat, 5 Dec 2009 17:19:06 +0000
(18:19 +0100)
SConstruct
patch
|
blob
|
history
diff --git
a/SConstruct
b/SConstruct
index b4895e86f28ad511cbdc216415cad622a31f047a..a05a298afd1c3997c7f07767511e1055c8db9fc8 100644
(file)
--- a/
SConstruct
+++ b/
SConstruct
@@
-12,8
+12,14
@@
DEFAULT_TARGET = 'Report.pdf'
#### Defining some new builders.
env = Environment()
#### 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 = ''
+
+contextBuilder = Builder(action='nice texexec --lua $SOURCE%s' % once,
suffix='.pdf',
src_suffix='.tex')
env.Append(BUILDERS={'Context': contextBuilder})
suffix='.pdf',
src_suffix='.tex')
env.Append(BUILDERS={'Context': contextBuilder})