/[escript]/trunk/doc/cookbook/SConscript
ViewVC logotype

Contents of /trunk/doc/cookbook/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3385 - (show annotations)
Thu Nov 25 04:41:33 2010 UTC (10 years ago) by ahallam
File size: 1323 byte(s)
Updates to cookbook, something is wrong with the sconstruct though
1
2 ########################################################
3 #
4 # Copyright (c) 2009-2010 by University of Queensland
5 # Earth Systems Science Computational Center (ESSCC)
6 # http://www.uq.edu.au/esscc
7 #
8 # Primary Business: Queensland, Australia
9 # Licensed under the Open Software License version 3.0
10 # http://www.opensource.org/licenses/osl-3.0.php
11 #
12 ########################################################
13
14 import os
15 Import('*')
16 local_env = env.Clone(tools=['pdflatex'])
17
18 tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.cls')
19 fig_src = Glob('figures/*.png')+Glob('figures/*.pdf')
20
21
22
23
24 if 'PDF' in dir(local_env):
25 if local_env['verbose']:
26 interaction='-interaction=nonstopmode'
27 else:
28 interaction='-interaction=batchmode'
29
30 # Define command to include SVN revision
31 local_env.Append(PDFLATEXFLAGS=[interaction,'\\\\newcommand{\\\\RepVersion}{%s\\\\xspace}\\\\input{cookbook.tex}'%(local_env['svn_revision'])])
32 cbpdf=local_env.PDF(target='cookbook.pdf', source='cookbook.tex')
33 Depends(cbpdf, fig_src+tex_src)
34
35 pdf_path=os.path.join(release_dir, 'cookbook', 'cookbook.pdf')
36 pdf_inst=local_env.InstallAs(target=pdf_path, source=cbpdf)
37 env.Alias('cookbook_pdf', pdf_inst)
38 else:
39 env.Alias('cookbook_pdf', '', 'echo "PDF output not supported!"')
40 env.AlwaysBuild('cookbook_pdf')
41

  ViewVC Help
Powered by ViewVC 1.1.26