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

Annotation of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1705 - (hide annotations)
Thu Aug 14 05:56:40 2008 UTC (10 years, 9 months ago) by ksteube
File size: 2679 byte(s)
Branch scons-dev is hereby closed.
Some parts of scons scripts have been re-written.

1 gross 708 #
2 ksteube 1705 # $Id$
3 gross 708 #
4 ksteube 1705 #######################################################
5     #
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 gross 708 import os
18     Import('*')
19    
20 ksteube 1705 local_env = clone_env(env)
21    
22     latexmode='-interaction=nonstopmode'
23    
24 gross 708 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'] ] + \
26     [ env.File('figures'+os.path.sep+x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') ]
27    
28 ksteube 1705 env.Command(env['prefix']+'/release/doc/user/guide.pdf',tex,
29 gross 708 [ "latex %s guide.tex"%latexmode, \
30     "bibtex guide", \
31     "makeindex guide", \
32     "latex %s guide"%latexmode, \
33     "latex %s guide"%latexmode, \
34 ksteube 1705 "dvipdf guide.dvi %s"%env['prefix']+'/release/doc/user/guide.pdf' ],
35 gross 708 chdir=tex_dir)
36 ksteube 1705 env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
37 gross 708
38    
39 ksteube 1705 env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex, \
40     ["latex2html -top_navigation \
41 gross 708 -bottom_navigation \
42     -index_in_navigation \
43     -contents_in_navigation \
44     -next_page_in_navigation \
45     -previous_page_in_navigation \
46 ksteube 1705 -title \"esys users guide\" \
47 gross 708 -noshow_section_numbers \
48 ksteube 1705 -dir \"../../release/doc/user/html\" -mkdir \
49 gross 708 -address \"esys@esscc.uq.edu.au\" \
50     -antialias_text -antialias -transparent \
51     -noshort_extn \
52 ksteube 1705 -up_url \"http://www.access.edu.au/escript\", \
53     -up_title \"escript\" guide.tex"], chdir=tex_dir)
54     env.Alias('guide_html', env['prefix']+'/release/doc/user/html/index.htm')
55    

  ViewVC Help
Powered by ViewVC 1.1.26