1 # Based on the Latex SConstruct at
2 # https://gutefee.massey.ac.nz/moin/HOWTO/LaTeX/LaTeX-SCons-Builder
7 #### Some configurations.
9 DEFAULT_TARGET = 'Core2Core.pdf'
11 #### Defining some new builders.
14 ## Context MkIV Builder:
15 contextBuilder = Builder(action=['texexec --lua $SOURCE','scp $TARGET ewi:'],
18 env.Append(BUILDERS={'Context': contextBuilder})
20 # Import tex settings from the user environment
21 env['ENV']['TEXMFCNF'] = os.environ['TEXMFCNF']
22 env['ENV']['HOME'] = os.environ['HOME']
23 # Allow the SSH agent to be used
24 env['ENV']['SSH_AUTH_SOCK'] = os.environ['SSH_AUTH_SOCK']
26 #### The actual builds.
29 core2core = env.Context('Core2Core')
30 Depends(core2core, 'pret-lam.lua')
31 Depends(core2core, 'pret-trans.lua')
33 Default(DEFAULT_TARGET)