/[escript]/release/5.1/doc/install/SConscript
ViewVC logotype

Contents of /release/5.1/doc/install/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6593 - (show annotations)
Mon Jun 5 03:58:43 2017 UTC (4 years, 1 month ago) by jfenwick
File size: 1539 byte(s)
Branching for release 5.1

1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2017 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('*.sty')+Glob('*.cfg')+Glob('*.cls')
22 #fig_src = Glob('figures/*.png') no figures yet
23
24 if local_env['pdflatex']:
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{install.tex}'%(local_env['svn_revision'])])
32 pdf=local_env.PDF(target='install.pdf', source='install.tex')
33 Depends(pdf, tex_src)
34
35 pdf_path=os.path.join(release_dir, 'install', 'install.pdf')
36 pdf_inst=local_env.InstallAs(target=pdf_path, source='install.pdf')
37 env.Alias('install_pdf', pdf_inst)
38 else:
39 env.Alias('install_pdf', '', '@echo "Not building install guide: PDF output not supported!"')
40 env.AlwaysBuild('install_pdf')
41

  ViewVC Help
Powered by ViewVC 1.1.26