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

Annotation of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2338 - (hide annotations)
Fri Mar 27 05:01:49 2009 UTC (10 years, 10 months ago) by jfenwick
File size: 3597 byte(s)
Added vars for mpi_flavour
Output correct version into the user guide
1 ksteube 1811
2     ########################################################
3 gross 708 #
4 ksteube 1811 # Copyright (c) 2003-2008 by University of Queensland
5     # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7 gross 708 #
8 ksteube 1811 # 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 ksteube 1705 #
12 ksteube 1811 ########################################################
13 ksteube 1705
14 ksteube 1811
15 gross 708 import os
16     Import('*')
17    
18 ksteube 1705 local_env = clone_env(env)
19    
20     latexmode='-interaction=nonstopmode'
21    
22 gross 708 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 jfenwick 2336 # We would like any figures in .eps to be converted into .pdfs
27    
28     figs=[ os.path.splitext(x)[0] for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') and os.path.splitext(x)[1] in ['.eps']]
29    
30    
31 jfenwick 2338 latexcmd="pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{guide.tex}"%latexmode
32    
33 jfenwick 2336 env.Command('guide.pdf',tex,
34     [ "epstopdf "+os.path.join('figures',name+".eps")+" -o "\
35     +os.path.join('figures',name+".pdf") for name in figs ]+ \
36 jfenwick 2338 [ latexcmd, \
37 gross 708 "bibtex guide", \
38     "makeindex guide", \
39 jfenwick 2338 latexcmd, \
40     latexcmd], \
41 gross 708 chdir=tex_dir)
42    
43 jfenwick 2336 tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/user/guide.pdf', source='guide.pdf')
44 gross 708
45 jfenwick 2336 env.Alias('guide_pdf', tmp)
46    
47    
48     #env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
49     #env.Alias('guide_pdf', tmp)
50    
51    
52     #env.Command(env['prefix']+'/release/doc/user/guide.pdf',tex,
53     #[ mytest(), "latex %s guide.tex"%latexmode, \
54     #"bibtex guide", \
55     #"makeindex guide", \
56     #"latex %s guide"%latexmode, \
57     #"latex %s guide"%latexmode, \
58     #"dvipdf guide.dvi %s"%env['prefix']+'/release/doc/user/guide.pdf' ],
59     #chdir=tex_dir)
60     #env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
61    
62    
63 ksteube 1705 env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex, \
64     ["latex2html -top_navigation \
65 gross 708 -bottom_navigation \
66     -index_in_navigation \
67     -contents_in_navigation \
68     -next_page_in_navigation \
69     -previous_page_in_navigation \
70 ksteube 1705 -title \"esys users guide\" \
71 gross 708 -noshow_section_numbers \
72 ksteube 1705 -dir \"../../release/doc/user/html\" -mkdir \
73 gross 708 -address \"esys@esscc.uq.edu.au\" \
74     -antialias_text -antialias -transparent \
75     -noshort_extn \
76 ksteube 1705 -up_url \"http://www.access.edu.au/escript\", \
77     -up_title \"escript\" guide.tex"], chdir=tex_dir)
78     env.Alias('guide_html', env['prefix']+'/release/doc/user/html/index.htm')
79    

  ViewVC Help
Powered by ViewVC 1.1.26