|
# Scons configuration file for documentation |
|
|
|
|
|
# Copyright 2006 by ACcESS MNRF |
|
|
# |
|
|
# http://www.access.edu.au |
|
|
# Primary Business: Queensland, Australia |
|
|
# Licensed under the Open Software License version 3.0 |
|
|
# http://www.opensource.org/licenses/osl-3.0.php |
|
|
# |
|
1 |
# |
# |
2 |
|
# $Id$ |
3 |
# |
# |
4 |
# builds the user's guide |
####################################################### |
5 |
latexmode='-interaction=nonstopmode' |
# |
6 |
|
# Copyright 2003-2007 by ACceSS MNRF |
7 |
|
# Copyright 2007 by University of Queensland |
8 |
|
# |
9 |
|
# http://esscc.uq.edu.au |
10 |
|
# Primary Business: Queensland, Australia |
11 |
|
# Licensed under the Open Software License version 3.0 |
12 |
|
# http://www.opensource.org/licenses/osl-3.0.php |
13 |
|
# |
14 |
|
####################################################### |
15 |
|
# |
16 |
|
|
17 |
import os |
import os |
18 |
Import('*') |
Import('*') |
19 |
|
|
20 |
local_env=env.Copy() |
local_env = clone_env(env) |
21 |
|
|
22 |
|
latexmode='-interaction=nonstopmode' |
23 |
|
|
24 |
tex_dir = local_env.Dir('.').srcnode().abspath |
tex_dir = local_env.Dir('.').srcnode().abspath |
25 |
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'] ] + \ |
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'] ] + \ |
26 |
[ env.File('figures'+os.path.sep+x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') ] |
[ env.File('figures'+os.path.sep+x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') ] |
27 |
|
|
28 |
env.Command(guide_pdf,tex, |
env.Command(env['prefix']+'/release/doc/user/guide.pdf',tex, |
29 |
[ "latex %s guide.tex"%latexmode, \ |
[ "latex %s guide.tex"%latexmode, \ |
30 |
"bibtex guide", \ |
"bibtex guide", \ |
31 |
"makeindex guide", \ |
"makeindex guide", \ |
32 |
"latex %s guide"%latexmode, \ |
"latex %s guide"%latexmode, \ |
33 |
"latex %s guide"%latexmode, \ |
"latex %s guide"%latexmode, \ |
34 |
"dvipdf guide.dvi %s"%guide_pdf ], |
"dvipdf guide.dvi %s"%env['prefix']+'/release/doc/user/guide.pdf' ], |
35 |
chdir=tex_dir) |
chdir=tex_dir) |
36 |
|
env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf') |
37 |
|
|
38 |
|
|
39 |
env.Command(guide_html_index,tex, |
env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex, \ |
40 |
"latex2html -top_navigation \ |
["latex2html -top_navigation \ |
41 |
-bottom_navigation \ |
-bottom_navigation \ |
42 |
-index_in_navigation \ |
-index_in_navigation \ |
43 |
-contents_in_navigation \ |
-contents_in_navigation \ |
44 |
-next_page_in_navigation \ |
-next_page_in_navigation \ |
45 |
-previous_page_in_navigation \ |
-previous_page_in_navigation \ |
46 |
-title \"esys user's guide\" \ |
-title \"esys users guide\" \ |
47 |
-noshow_section_numbers \ |
-noshow_section_numbers \ |
48 |
-dir %s -mkdir \ |
-dir \"../../release/doc/user/html\" -mkdir \ |
49 |
-address \"esys@esscc.uq.edu.au\" \ |
-address \"esys@esscc.uq.edu.au\" \ |
50 |
-antialias_text -antialias -transparent \ |
-antialias_text -antialias -transparent \ |
51 |
-noshort_extn \ |
-noshort_extn \ |
52 |
-up_url \"http://www.access.edu.au/escript\", -up_title \"escript\" guide.tex"%os.path.splitext(str(guide_html_index))[0], |
-up_url \"http://www.access.edu.au/escript\", \ |
53 |
chdir=tex_dir) |
-up_title \"escript\" guide.tex"], chdir=tex_dir) |
54 |
|
env.Alias('guide_html', env['prefix']+'/release/doc/user/html/index.htm') |
55 |
|
|