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

Annotation of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2336 - (hide annotations)
Thu Mar 26 06:09:20 2009 UTC (10 years, 10 months ago) by jfenwick
File size: 3555 byte(s)
Fixed title for pdf builds.
All the peices build now. (There are still issues with Figure 1.7 in the html version).
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     env.Command('guide.pdf',tex,
32     [ "epstopdf "+os.path.join('figures',name+".eps")+" -o "\
33     +os.path.join('figures',name+".pdf") for name in figs ]+ \
34     [ "pdflatex %s guide.tex"%latexmode, \
35 gross 708 "bibtex guide", \
36     "makeindex guide", \
37 jfenwick 2336 "pdflatex %s guide"%latexmode, \
38     "pdflatex %s guide"%latexmode], \
39 gross 708 chdir=tex_dir)
40    
41 jfenwick 2336 tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/user/guide.pdf', source='guide.pdf')
42 gross 708
43 jfenwick 2336 env.Alias('guide_pdf', tmp)
44    
45    
46     #env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
47     #env.Alias('guide_pdf', tmp)
48    
49    
50     #env.Command(env['prefix']+'/release/doc/user/guide.pdf',tex,
51     #[ mytest(), "latex %s guide.tex"%latexmode, \
52     #"bibtex guide", \
53     #"makeindex guide", \
54     #"latex %s guide"%latexmode, \
55     #"latex %s guide"%latexmode, \
56     #"dvipdf guide.dvi %s"%env['prefix']+'/release/doc/user/guide.pdf' ],
57     #chdir=tex_dir)
58     #env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
59    
60    
61 ksteube 1705 env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex, \
62     ["latex2html -top_navigation \
63 gross 708 -bottom_navigation \
64     -index_in_navigation \
65     -contents_in_navigation \
66     -next_page_in_navigation \
67     -previous_page_in_navigation \
68 ksteube 1705 -title \"esys users guide\" \
69 gross 708 -noshow_section_numbers \
70 ksteube 1705 -dir \"../../release/doc/user/html\" -mkdir \
71 gross 708 -address \"esys@esscc.uq.edu.au\" \
72     -antialias_text -antialias -transparent \
73     -noshort_extn \
74 ksteube 1705 -up_url \"http://www.access.edu.au/escript\", \
75     -up_title \"escript\" guide.tex"], chdir=tex_dir)
76     env.Alias('guide_html', env['prefix']+'/release/doc/user/html/index.htm')
77    

  ViewVC Help
Powered by ViewVC 1.1.26