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

Annotation of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3348 - (hide annotations)
Fri Nov 12 05:55:50 2010 UTC (9 years 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 ksteube 1811
2     ########################################################
3 gross 708 #
4 jfenwick 2881 # Copyright (c) 2003-2010 by University of Queensland
5 ksteube 1811 # 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 gross 708 import os
15     Import('*')
16 caltinay 3271 local_env = env.Clone(tools=['pdflatex'])
17 gross 708
18 caltinay 3271 tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.sty')+Glob('*.cfg')+Glob('*.cls')
19     fig_src = Glob('figures/*.eps')
20 ksteube 1705
21 caltinay 3304 # Target that converts eps figures to pdf and adds png files
22     figures=local_env.EpsToPDF(source=fig_src) + Glob('figures/*.png')
23    
24 caltinay 3277 if 'PDF' in dir(local_env):
25     if local_env['verbose']:
26     interaction='-interaction=nonstopmode'
27     else:
28     interaction='-interaction=batchmode'
29 gross 708
30 caltinay 3277 # Define command to include SVN revision
31 jfenwick 3343 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 caltinay 3277 Depends(pdf, figures+tex_src)
34 jfenwick 2336
35 jfenwick 3343 pdf_path=os.path.join(release_dir, 'user', 'user.pdf')
36 caltinay 3348 pdf_inst=local_env.InstallAs(target=pdf_path, source=pdf)
37 jfenwick 3343 env.Alias('user_pdf', pdf_inst)
38 caltinay 3277 else:
39 jfenwick 3343 env.Alias('user_pdf', '', 'echo "PDF output not supported!"')
40     env.AlwaysBuild('user_pdf')
41 jfenwick 2336
42 caltinay 3304 # 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 jfenwick 2338

  ViewVC Help
Powered by ViewVC 1.1.26