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

Contents of /trunk/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2503 - (show annotations)
Wed Jul 1 05:05:08 2009 UTC (9 years, 7 months ago) by jfenwick
File size: 6165 byte(s)
Fixing doc build so examples tar and zip are built properly.
Fixed image filenames in user guide.

Please do not put extensions on image files.


1
2 ########################################################
3 #
4 # Copyright (c) 2003-2008 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
15 import os
16 Import('*')
17 #
18 # these are the release examples in example sub directory:
19 #
20 example_files_allow_mpi = [
21 'geotutorial/steadystate_variablek.py',
22 'geotutorial/steadystate.py',
23 'geotutorial/forward_euler.py',
24 'geotutorial/myfirstscript.py',
25 'geotutorial/backward_euler.py',
26 'usersguide/lit_driven_cavity.py',
27 'usersguide/mount.py',
28 'usersguide/wave.py',
29 'usersguide/heatedblock.py',
30 'usersguide/helmholtz.py',
31 'usersguide/fluid.py',
32 'usersguide/poisson.py',
33 'usersguide/diffusion.py',
34 ]
35
36 example_files_no_mpi = [
37 'pyvisi/poisson_with_pyvisi.py',
38 'pyvisi/streamline.py',
39 'pyvisi/legend.py',
40 'pyvisi/data_sample_images/image.jpg',
41 'pyvisi/data_sample_images/wave00.jpg',
42 'pyvisi/data_sample_images/seriesofcuts04.jpg',
43 'pyvisi/data_sample_images/movie000943.jpg',
44 'pyvisi/data_sample_images/seriesofreads0102.jpg',
45 'pyvisi/data_sample_images/text.jpg',
46 'pyvisi/data_sample_images/map.jpg',
47 'pyvisi/data_sample_images/seriesofcuts02.jpg',
48 'pyvisi/data_sample_images/diffusion02.jpg',
49 'pyvisi/data_sample_images/movie000941.jpg',
50 'pyvisi/data_sample_images/rectangle.jpg',
51 'pyvisi/data_sample_images/seriesofreads0103.jpg',
52 'pyvisi/data_sample_images/movie000940.jpg',
53 'pyvisi/data_sample_images/diffusion04.jpg',
54 'pyvisi/data_sample_images/legend.jpg',
55 'pyvisi/data_sample_images/carpet.jpg',
56 'pyvisi/data_sample_images/diffusion01.jpg',
57 'pyvisi/data_sample_images/poisson.jpg',
58 'pyvisi/data_sample_images/diffusion03.jpg',
59 'pyvisi/data_sample_images/velocity.jpg',
60 'pyvisi/data_sample_images/movie000946.jpg',
61 'pyvisi/data_sample_images/movie000945.jpg',
62 'pyvisi/data_sample_images/all.jpg',
63 'pyvisi/data_sample_images/movie000942.jpg',
64 'pyvisi/data_sample_images/seriesofcuts03.jpg',
65 'pyvisi/data_sample_images/streamline.jpg',
66 'pyvisi/data_sample_images/seriesofcuts01.jpg',
67 'pyvisi/data_sample_images/wave02.jpg',
68 'pyvisi/data_sample_images/ellipsoid.jpg',
69 'pyvisi/data_sample_images/seriesofreads0100.jpg',
70 'pyvisi/data_sample_images/seriesofreads0099.jpg',
71 'pyvisi/data_sample_images/movie.mpg',
72 'pyvisi/data_sample_images/movie000947.jpg',
73 'pyvisi/data_sample_images/logo.jpg',
74 'pyvisi/data_sample_images/heatedblock.jpg',
75 'pyvisi/data_sample_images/contour.jpg',
76 'pyvisi/data_sample_images/seriesofreads0101.jpg',
77 'pyvisi/data_sample_images/movie000948.jpg',
78 'pyvisi/data_sample_images/maponscalarclipwithrotation.jpg',
79 'pyvisi/data_sample_images/movie000938.jpg',
80 'pyvisi/data_sample_images/movie000944.jpg',
81 'pyvisi/data_sample_images/wave01.jpg',
82 'pyvisi/data_sample_images/movie000939.jpg',
83 'pyvisi/data_sample_images/helmholtz.jpg',
84 'pyvisi/data_sample_images/seriesofcuts00.jpg',
85 'pyvisi/text.py',
86 'pyvisi/wave_with_pyvisi.py',
87 'pyvisi/data_meshes/tempvel-000942.vtu',
88 'pyvisi/data_meshes/tempvel-000943.vtu',
89 'pyvisi/data_meshes/interior_3D.xml',
90 'pyvisi/data_meshes/tempvel-000947.vtu',
91 'pyvisi/data_meshes/without_st.0700.xml',
92 'pyvisi/data_meshes/tempvel-000940.vtu',
93 'pyvisi/data_meshes/access_logo.jpg',
94 'pyvisi/data_meshes/phi_talus_lava.0101.vtu',
95 'pyvisi/data_meshes/phi_talus_lava.0099.vtu',
96 'pyvisi/data_meshes/tempvel-000945.vtu',
97 'pyvisi/data_meshes/tempvel-000944.vtu',
98 'pyvisi/data_meshes/phi_talus_lava.0103.vtu',
99 'pyvisi/data_meshes/tempvel-000938.vtu',
100 'pyvisi/data_meshes/flinders.jpg',
101 'pyvisi/data_meshes/phi_talus_lava.0102.vtu',
102 'pyvisi/data_meshes/tempvel-000941.vtu',
103 'pyvisi/data_meshes/phi_talus_lava.0100.vtu',
104 'pyvisi/data_meshes/tempvel-000946.vtu',
105 'pyvisi/data_meshes/tempvel-000948.vtu',
106 'pyvisi/data_meshes/tempvel-000939.vtu',
107 'pyvisi/helmholtz_with_pyvisi.py',
108 'pyvisi/all.py',
109 'pyvisi/map.py',
110 'pyvisi/offscreen.py',
111 'pyvisi/logo.py',
112 'pyvisi/rectangle.py',
113 'pyvisi/diffusion_with_pyvisi.py',
114 'pyvisi/heatedblock_with_pyvisi.py',
115 'pyvisi/movie.py',
116 'pyvisi/seriesofcuts.py',
117 'pyvisi/velocityonplanecut.py',
118 'pyvisi/ellipsoidonplaneclip.py',
119 'pyvisi/maponscalarclipwithrotation.py',
120 'pyvisi/seriesofreads.py',
121 'pyvisi/contour.py',
122 'pyvisi/carpet.py',
123 'pyvisi/image.py'
124 ]
125
126 example_files= example_files_allow_mpi + example_files_no_mpi
127
128
129 ex2=[ os.path.join("examples",str(x)) for x in example_files]
130
131 #==========================================================================================
132
133 local_env = clone_env(env)
134 src_dir = local_env.Dir('.').srcnode().abspath
135 release_dir=local_env.Dir('#/release/doc/').srcnode().abspath
136
137 tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
138 "zip "+os.path.join(release_dir,"escript_examples.zip ") +" ".join(ex2),chdir=src_dir)
139 env.Alias('examples_zipfile', tmp1)
140
141
142 #Need to use explicit tar rather than the tar builder due to problems getting it not to put
143 #unwanted path components in the tar file
144 #--transform on tar is not supported on savanna
145 tmp2 = env.Command("#/release/doc/escript_examples.tar.gz", None, "tar -czf "+os.path.join(release_dir,"escript_examples.tar.gz ")+" ".join(ex2), chdir=src_dir)
146 env.Alias('examples_tarfile',tmp2)
147
148 #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
149 #if 'Tar' in dir(env): env.Tar('#/release/doc/escript_examples.tar.gz', example_files,chdir=src_dir)
150 #env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')
151
152 local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)
153 local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1)
154 local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1)
155 local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
156 local_env.SConscript(dirs = ['#/doc/examples'], build_dir='#/build/$PLATFORM/doc/examples', duplicate=1, exports=[ 'example_files_allow_mpi' , 'example_files_no_mpi' ])
157
158

  ViewVC Help
Powered by ViewVC 1.1.26