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

Contents of /trunk/doc/cookbook/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3272 - (show annotations)
Thu Oct 14 04:02:06 2010 UTC (10 years, 3 months ago) by caltinay
File size: 1098 byte(s)
Similar to last commit but for cookbook. Can't test since cookbook doesn't
build at the moment.

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()
17
18 tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.sty')+Glob('*.cfg')+Glob('*.cls')
19 fig_src = Glob('figures/*.png')
20
21 if local_env['verbose']:
22 interaction='-interaction=nonstopmode'
23 else:
24 interaction='-interaction=batchmode'
25
26 # Define command to include SVN revision
27 local_env.Append(PDFLATEXFLAGS=[interaction,'\\\\newcommand{\\\\RepVersion}{%s\\\\xspace}\\\\input{cookbook.tex}'%(local_env['svn_revision'])])
28 pdf=local_env.PDF(target='cookbook.pdf', source='cookbook.tex')
29 Depends(pdf, fig_src+tex_src)
30
31 pdf_inst=local_env.InstallAs(target=env['prefix']+'/release/doc/cookbook/cookbook.pdf', source=pdf)
32
33 env.Alias('cookbook_pdf', pdf_inst)
34

  ViewVC Help
Powered by ViewVC 1.1.26