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

Contents of /trunk/doc/install/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6803 - (show annotations)
Mon Apr 1 04:08:47 2019 UTC (3 years, 11 months ago) by aellery
File size: 1668 byte(s)
Fix for bug 465 (naming of documentation file).

Now, when the documentation is built, scons will label the install guide as install.r[revision].pdf where [revision] is the revision in the subversion repository.


1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-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('*.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 install_pdf_name='install.r'+env['svn_revision']+".pdf"
33 pdf=local_env.PDF(target='install.pdf', source='install.tex')
34 Depends(pdf, tex_src)
35
36 # pdf_path=os.path.join(release_dir, 'install', 'install.pdf')
37 pdf_path=os.path.join(release_dir, 'install', install_pdf_name)
38 pdf_inst=local_env.InstallAs(target=pdf_path, source='install.pdf')
39 env.Alias('install_pdf', pdf_inst)
40 else:
41 env.Alias('install_pdf', '', '@echo "Not building install guide: PDF output not supported!"')
42 env.AlwaysBuild('install_pdf')
43

  ViewVC Help
Powered by ViewVC 1.1.26