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

Annotation of /trunk/doc/install/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6803 - (hide 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 jfenwick 2287
2 jfenwick 3982 ##############################################################################
3 jfenwick 2287 #
4 jfenwick 6651 # Copyright (c) 2003-2018 by The University of Queensland
5 jfenwick 3982 # http://www.uq.edu.au
6 jfenwick 2287 #
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 2287 #
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 2287
17     import os
18     Import('*')
19 caltinay 3277 local_env = env.Clone(tools=['pdflatex'])
20 jfenwick 2287
21 caltinay 3277 tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.sty')+Glob('*.cfg')+Glob('*.cls')
22     #fig_src = Glob('figures/*.png') no figures yet
23 jfenwick 2287
24 caltinay 3604 if local_env['pdflatex']:
25 caltinay 3277 if local_env['verbose']:
26     interaction='-interaction=nonstopmode'
27     else:
28     interaction='-interaction=batchmode'
29 jfenwick 2287
30 caltinay 3277 # Define command to include SVN revision
31     local_env.Append(PDFLATEXFLAGS=[interaction,'\\\\newcommand{\\\\RepVersion}{%s\\\\xspace}\\\\input{install.tex}'%(local_env['svn_revision'])])
32 aellery 6803 install_pdf_name='install.r'+env['svn_revision']+".pdf"
33 caltinay 3277 pdf=local_env.PDF(target='install.pdf', source='install.tex')
34     Depends(pdf, tex_src)
35 jfenwick 2287
36 aellery 6803 # pdf_path=os.path.join(release_dir, 'install', 'install.pdf')
37     pdf_path=os.path.join(release_dir, 'install', install_pdf_name)
38 jfenwick 3339 pdf_inst=local_env.InstallAs(target=pdf_path, source='install.pdf')
39 caltinay 3277 env.Alias('install_pdf', pdf_inst)
40     else:
41 caltinay 3604 env.Alias('install_pdf', '', '@echo "Not building install guide: PDF output not supported!"')
42 caltinay 3277 env.AlwaysBuild('install_pdf')
43 jfenwick 2287

  ViewVC Help
Powered by ViewVC 1.1.26