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

Contents of /trunk/doc/cookbook/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6651 - (show annotations)
Wed Feb 7 02:12:08 2018 UTC (2 years, 7 months ago) by jfenwick
File size: 1522 byte(s)
Make everyone sad by touching all the files

Copyright dates update

1
2 ##############################################################################
3 #
4 # Copyright (c) 2009-2018 by The University of Queensland
5 # http://www.uq.edu.au
6 #
7 # Primary Business: Queensland, Australia
8 # Licensed under the Apache License, version 2.0
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 # Development 2012-2013 by School of Earth Sciences
13 # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 #
15 ##############################################################################
16
17 import os
18 Import('*')
19 local_env = env.Clone(tools=['pdflatex'])
20
21 tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.cls')
22 fig_src = Glob('figures/*.png')+Glob('figures/*.pdf')
23 if local_env['pdflatex']:
24 if local_env['verbose']:
25 interaction='-interaction=nonstopmode'
26 else:
27 interaction='-interaction=batchmode'
28
29 # Define command to include SVN revision
30 local_env.Append(PDFLATEXFLAGS=[interaction,'\\\\newcommand{\\\\RepVersion}{%s\\\\xspace}\\\\input{cookbook.tex}'%(local_env['svn_revision'])])
31 cbpdf=local_env.PDF(target='cookbook.pdf', source='cookbook.tex')
32 Depends(cbpdf, fig_src+tex_src)
33
34 pdf_path=os.path.join(release_dir, 'cookbook', 'cookbook.pdf')
35 pdf_inst=local_env.InstallAs(target=pdf_path, source=cbpdf)
36 env.Alias('cookbook_pdf', pdf_inst)
37 else:
38 env.Alias('cookbook_pdf', '', '@echo "Not building cookbook: PDF output not supported!"')
39 env.AlwaysBuild('cookbook_pdf')
40

  ViewVC Help
Powered by ViewVC 1.1.26