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

Annotation of /trunk/doc/cookbook/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3259 - (hide annotations)
Mon Oct 11 01:48:14 2010 UTC (9 years, 1 month ago) by jfenwick
File size: 1403 byte(s)
Merging dudley and scons updates from branches

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

  ViewVC Help
Powered by ViewVC 1.1.26