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

Contents of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2339 - (show annotations)
Fri Mar 27 05:14:55 2009 UTC (11 years, 8 months ago) by jfenwick
File size: 3645 byte(s)
Fixing a bug preventing docs from building
1
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 # 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 latexcmd="pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{guide.tex}"%latexmode
32
33 env.Command(env['prefix']+'/doc/user/guide.pdf',tex,
34 [ "epstopdf "+os.path.join('figures',name+".eps")+" -o "\
35 +os.path.join('figures',name+".pdf") for name in figs ]+ \
36 [ latexcmd, \
37 "bibtex guide", \
38 "makeindex guide", \
39 latexcmd, \
40 latexcmd], \
41 chdir=tex_dir)
42
43 tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/user/guide.pdf', source=env['prefix']+'/doc/user/guide.pdf')
44
45 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 env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex, \
64 ["latex2html -top_navigation \
65 -bottom_navigation \
66 -index_in_navigation \
67 -contents_in_navigation \
68 -next_page_in_navigation \
69 -previous_page_in_navigation \
70 -title \"esys users guide\" \
71 -noshow_section_numbers \
72 -dir \"../../release/doc/user/html\" -mkdir \
73 -address \"esys@esscc.uq.edu.au\" \
74 -antialias_text -antialias -transparent \
75 -noshort_extn \
76 -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