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

Annotation of /trunk/doc/install/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2287 - (hide annotations)
Tue Feb 24 04:29:17 2009 UTC (13 years, 5 months ago) by jfenwick
File size: 1699 byte(s)
Added skeleton of install guide.
Removed some files which come in the standard texlive distro anyway.
Updated README_LICENSE to list python tex styles.
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     env.Command('install.pdf',tex,
37     [ latexcmd, \
38     "makeindex install", \
39     latexcmd, \
40     latexcmd], \
41     chdir=tex_dir)
42    
43     tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/install/install.pdf', source='install.pdf')
44    
45     env.Alias('install_pdf', tmp)
46    
47    
48    

  ViewVC Help
Powered by ViewVC 1.1.26