projects
/
matthijs
/
master-project
/
report.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add backmatter commands.
[matthijs/master-project/report.git]
/
SConstruct
diff --git
a/SConstruct
b/SConstruct
index 29ca6bee3dbadda0409dcfeb1873fae942f6951b..a05a298afd1c3997c7f07767511e1055c8db9fc8 100644
(file)
--- a/
SConstruct
+++ b/
SConstruct
@@
-3,16
+3,23
@@
#
import os
import os.path
#
import os
import os.path
+import glob
#### Some configurations.
#### Some configurations.
-DEFAULT_TARGET = '
Core2Core
.pdf'
+DEFAULT_TARGET = '
Report
.pdf'
#### Defining some new builders.
env = Environment()
#### Defining some new builders.
env = Environment()
-## Context MkIV Builder:
-contextBuilder = Builder(action=['texexec --lua $SOURCE','scp $TARGET ewi:'],
+## 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})
@@
-30,4
+37,12
@@
core2core = env.Context('Core2Core')
Depends(core2core, 'pret-lam.lua')
Depends(core2core, 'pret-trans.lua')
Depends(core2core, 'pret-lam.lua')
Depends(core2core, 'pret-trans.lua')
+## Report
+report = env.Context('Report')
+Depends(report, glob.glob('pret-*.lua'))
+Depends(report, glob.glob('Chapters/*.tex'))
+Depends(report, glob.glob('Utils/*.tex'))
+
+AddPostAction(report, 'scp $TARGET ewi:')
+
Default(DEFAULT_TARGET)
Default(DEFAULT_TARGET)