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

Annotation of /trunk/doc/install/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2340 - (hide annotations)
Fri Mar 27 05:32:05 2009 UTC (14 years ago) by jfenwick
File size: 1751 byte(s)
And again
1 jfenwick 2287
2     ########################################################
3     #
4     # Copyright (c) 2003-2008 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     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'] ] + \
24     [ env.File('figures'+os.path.sep+x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') ]
25    
26     #env.Command(env['prefix']+'/release/doc/install/install.pdf',tex,
27     #[ "latex %s install.tex"%latexmode, \
28     #"makeindex install", \
29     #"latex %s install"%latexmode, \
30     #"latex %s install"%latexmode, \
31     #"dvipdf install.dvi %s"%env['prefix']+'/release/doc/install/install.pdf' ],
32     #chdir=tex_dir)
33    
34     latexcmd="pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{install.tex}"%latexmode
35    
36 jfenwick 2340 env.Command(env['prefix']+'doc/install/install.pdf',tex,
37 jfenwick 2287 [ latexcmd, \
38     "makeindex install", \
39     latexcmd, \
40     latexcmd], \
41     chdir=tex_dir)
42    
43 jfenwick 2340 tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/install/install.pdf', source=env['prefix']+'doc/install/install.pdf')
44 jfenwick 2287
45     env.Alias('install_pdf', tmp)
46    
47    
48    

  ViewVC Help
Powered by ViewVC 1.1.26