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

Annotation of /trunk/doc/install/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3911 - (hide annotations)
Thu Jun 14 01:01:03 2012 UTC (8 years, 5 months ago) by jfenwick
File size: 1358 byte(s)
Copyright changes
1 jfenwick 2287
2     ########################################################
3     #
4 jfenwick 3911 # Copyright (c) 2003-2012 by University of Queensland
5 jfenwick 2287 # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7     #
8     # Primary Business: Queensland, Australia
9     # Licensed under the Open Software License version 3.0
10     # http://www.opensource.org/licenses/osl-3.0.php
11     #
12     ########################################################
13    
14     import os
15     Import('*')
16 caltinay 3277 local_env = env.Clone(tools=['pdflatex'])
17 jfenwick 2287
18 caltinay 3277 tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.sty')+Glob('*.cfg')+Glob('*.cls')
19     #fig_src = Glob('figures/*.png') no figures yet
20 jfenwick 2287
21 caltinay 3604 if local_env['pdflatex']:
22 caltinay 3277 if local_env['verbose']:
23     interaction='-interaction=nonstopmode'
24     else:
25     interaction='-interaction=batchmode'
26 jfenwick 2287
27 caltinay 3277 # Define command to include SVN revision
28     local_env.Append(PDFLATEXFLAGS=[interaction,'\\\\newcommand{\\\\RepVersion}{%s\\\\xspace}\\\\input{install.tex}'%(local_env['svn_revision'])])
29     pdf=local_env.PDF(target='install.pdf', source='install.tex')
30     Depends(pdf, tex_src)
31 jfenwick 2287
32 caltinay 3277 pdf_path=os.path.join(release_dir, 'install', 'install.pdf')
33 jfenwick 3339 pdf_inst=local_env.InstallAs(target=pdf_path, source='install.pdf')
34 caltinay 3277 env.Alias('install_pdf', pdf_inst)
35     else:
36 caltinay 3604 env.Alias('install_pdf', '', '@echo "Not building install guide: PDF output not supported!"')
37 caltinay 3277 env.AlwaysBuild('install_pdf')
38 jfenwick 2287

  ViewVC Help
Powered by ViewVC 1.1.26