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

Contents of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3348 - (show annotations)
Fri Nov 12 05:55:50 2010 UTC (8 years, 11 months ago) by caltinay
File size: 2592 byte(s)
Added weipa import statements to the relevant parts in user guide and cookbook.
Documented the deprecation of esys.escript.saveVTK in the changes chapter.

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2010 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 import os
15 Import('*')
16 local_env = env.Clone(tools=['pdflatex'])
17
18 tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.sty')+Glob('*.cfg')+Glob('*.cls')
19 fig_src = Glob('figures/*.eps')
20
21 # Target that converts eps figures to pdf and adds png files
22 figures=local_env.EpsToPDF(source=fig_src) + Glob('figures/*.png')
23
24 if 'PDF' in dir(local_env):
25 if local_env['verbose']:
26 interaction='-interaction=nonstopmode'
27 else:
28 interaction='-interaction=batchmode'
29
30 # Define command to include SVN revision
31 local_env.Append(PDFLATEXFLAGS=[interaction,'\\\\newcommand{\\\\RepVersion}{%s\\\\xspace}\\\\input{user.tex}'%(local_env['svn_revision'])])
32 pdf=local_env.PDF(target='user.pdf', source='user.tex')
33 Depends(pdf, figures+tex_src)
34
35 pdf_path=os.path.join(release_dir, 'user', 'user.pdf')
36 pdf_inst=local_env.InstallAs(target=pdf_path, source=pdf)
37 env.Alias('user_pdf', pdf_inst)
38 else:
39 env.Alias('user_pdf', '', 'echo "PDF output not supported!"')
40 env.AlwaysBuild('user_pdf')
41
42 # html version
43 #html_dir=os.path.join(release_dir,'user','html')
44 #html=local_env.Command(Dir(html_dir), tex_src+fig_src,
45 # [Delete(Dir('html')),
46 # Copy(Dir('html'), '${SOURCE.srcdir}'),
47 # Delete(Dir('html/figures')),
48 # Copy(Dir('html/figures'), Dir('figures')),
49 # #Delete(html_dir),
50 # Mkdir(html_dir),
51 # "cd %s && latex2html -top_navigation \
52 # -bottom_navigation \
53 # -index_in_navigation \
54 # -contents_in_navigation \
55 # -next_page_in_navigation \
56 # -previous_page_in_navigation \
57 # -title \"esys users guide\" \
58 # -noshow_section_numbers \
59 # -dir %s -mkdir \
60 # -address \"esys@esscc.uq.edu.au\" \
61 # -antialias_text -antialias -transparent \
62 # -noshort_extn \
63 # -up_url \"https://launchpad.net/escript-finley\" \
64 # -up_title \"escript\" guide.tex"%(Dir('html').abspath,html_dir)])
65 #env.Alias('guide_html', [figures,html])
66 #env.AlwaysBuild(Dir(html_dir))
67

  ViewVC Help
Powered by ViewVC 1.1.26