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

Annotation of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1811 - (hide annotations)
Thu Sep 25 23:11:13 2008 UTC (10 years, 10 months ago) by ksteube
File size: 2656 byte(s)
Copyright updated in all files

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 ksteube 1705 env.Command(env['prefix']+'/release/doc/user/guide.pdf',tex,
27 gross 708 [ "latex %s guide.tex"%latexmode, \
28     "bibtex guide", \
29     "makeindex guide", \
30     "latex %s guide"%latexmode, \
31     "latex %s guide"%latexmode, \
32 ksteube 1705 "dvipdf guide.dvi %s"%env['prefix']+'/release/doc/user/guide.pdf' ],
33 gross 708 chdir=tex_dir)
34 ksteube 1705 env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
35 gross 708
36    
37 ksteube 1705 env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex, \
38     ["latex2html -top_navigation \
39 gross 708 -bottom_navigation \
40     -index_in_navigation \
41     -contents_in_navigation \
42     -next_page_in_navigation \
43     -previous_page_in_navigation \
44 ksteube 1705 -title \"esys users guide\" \
45 gross 708 -noshow_section_numbers \
46 ksteube 1705 -dir \"../../release/doc/user/html\" -mkdir \
47 gross 708 -address \"esys@esscc.uq.edu.au\" \
48     -antialias_text -antialias -transparent \
49     -noshort_extn \
50 ksteube 1705 -up_url \"http://www.access.edu.au/escript\", \
51     -up_title \"escript\" guide.tex"], chdir=tex_dir)
52     env.Alias('guide_html', env['prefix']+'/release/doc/user/html/index.htm')
53    

  ViewVC Help
Powered by ViewVC 1.1.26