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

Annotation of /trunk/doc/cookbook/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.26