/[escript]/branches/scons-dev/doc/user/SConscript
ViewVC logotype

Contents of /branches/scons-dev/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1653 - (show annotations)
Wed Jul 16 00:31:11 2008 UTC (11 years, 8 months ago) by ksteube
File size: 2724 byte(s)
New scons scripts now work with scons-98 as well as scons-96...only
had to use env.Clone() instead of env.Copy().

Added copyright to each scons file.

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

  ViewVC Help
Powered by ViewVC 1.1.26