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

Contents of /trunk/doc/install/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3259 - (show annotations)
Mon Oct 11 01:48:14 2010 UTC (8 years, 11 months ago) by jfenwick
File size: 1354 byte(s)
Merging dudley and scons updates from branches

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2010 by University of Queensland
5 # 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 local_env = env.Clone()
17
18 latexmode='-interaction=nonstopmode'
19 tex_dir = local_env.Dir('.').srcnode().abspath
20 dir_cmd = "cd "+tex_dir+" && "
21 tex= [ env.File(x) for x in os.listdir(tex_dir) if not x.startswith('.') and not os.path.isdir(tex_dir+os.path.sep+x) and os.path.splitext(x)[1] in ['.tex', '.bib', '.sty', '.cfg', '.cls'] ] + \
22 [ env.File('figures'+os.path.sep+x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') ]
23
24 latexcmd=dir_cmd+"pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{install.tex}"%latexmode
25
26 local_env.Command(env['prefix']+'/doc/install/install.pdf', tex,
27 [ latexcmd, \
28 dir_cmd+"makeindex install", \
29 latexcmd, \
30 latexcmd ] \
31 )
32
33 tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/install/install.pdf', source=env['prefix']+'/doc/install/install.pdf')
34
35 env.Alias('install_pdf', tmp)
36

  ViewVC Help
Powered by ViewVC 1.1.26