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

Contents of /trunk/doc/cookbook/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3069 - (show annotations)
Wed Jul 21 03:24:48 2010 UTC (9 years, 3 months ago) by ahallam
File size: 1608 byte(s)
Updates to layer cake and cookbook as well as examples.
1
2 ########################################################
3 #
4 # Copyright (c) 2009-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
15 import os
16 Import('*')
17
18 local_env = clone_env(env)
19
20 latexmode='-interaction=nonstopmode'
21
22 tex_dir = local_env.Dir('.').srcnode().abspath
23 dir_cmd = "cd "+tex_dir+" && "
24 fig_dirs = ['figures','figures/gmsh']
25 figs=[]
26
27 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'] ]
28
29 for dir in fig_dirs:
30 figs.append([env.File(os.path.join(dir,x)) for x in os.listdir(os.path.join(tex_dir,dir)) if not os.path.isdir(os.path.join(tex_dir,dir,x)) and not x.startswith('.')])
31
32 tex.append(figs)
33
34 latexcmd=dir_cmd+"pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{cookbook.tex}"%latexmode
35
36 local_env.Command(env['prefix']+'/doc/cookbook/cookbook.pdf',[tex], \
37 [ latexcmd, \
38 # "bibtex cookbook", \
39 dir_cmd+"makeindex cookbook", \
40 latexcmd, \
41 latexcmd], \
42 # chdir=tex_dir
43 )
44
45 tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/cookbook/cookbook.pdf', source=env['prefix']+'/doc/cookbook/cookbook.pdf')
46
47 env.Alias('cookbook_pdf', tmp)
48
49
50

  ViewVC Help
Powered by ViewVC 1.1.26