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

Contents of /trunk/doc/install/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.26