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

Annotation of /trunk/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2502 - (hide annotations)
Tue Jun 30 05:49:22 2009 UTC (9 years, 7 months ago) by gross
File size: 6120 byte(s)
tests for examples added. utest is not working yet.
1 ksteube 1811
2     ########################################################
3 cochrane 369 #
4 ksteube 1811 # Copyright (c) 2003-2008 by University of Queensland
5     # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7 elspeth 643 #
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 cochrane 369
14 ksteube 1811
15 gross 707 import os
16     Import('*')
17 gross 2502 #
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 cochrane 369
36 gross 2502 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    
130 ksteube 1705 local_env = clone_env(env)
131 jfenwick 2402 src_dir = local_env.Dir('.').srcnode().abspath
132 gross 2502 release_dir=local_env.Dir('#/release/doc/').srcnode().abspath
133 ksteube 1215
134 jfenwick 2402 tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
135 gross 2502 "zip "+os.path.join(release_dir,"escript_examples.zip ") +" ".join(example_files),chdir=src_dir)
136 ksteube 2091 env.Alias('examples_zipfile', tmp1)
137 ksteube 1215
138 ksteube 1705
139 jfenwick 2405 #Need to use explicit tar rather than the tar builder due to problems getting it not to put
140     #unwanted path components in the tar file
141     #--transform on tar is not supported on savanna
142 gross 2502 tmp2 = env.Command("#/release/doc/escript_examples.tar.gz", None, "tar -czf "+os.path.join(release_dir,"escript_examples.tar.gz ")+" ".join(example_files), chdir=src_dir)
143 jfenwick 2405 env.Alias('examples_tarfile',tmp2)
144    
145     #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
146     #if 'Tar' in dir(env): env.Tar('#/release/doc/escript_examples.tar.gz', example_files,chdir=src_dir)
147     #env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')
148    
149 gross 707 local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)
150 elspeth 712 local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1)
151 ksteube 1215 local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1)
152 jfenwick 2287 local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
153 gross 2502 local_env.SConscript(dirs = ['#/doc/examples'], build_dir='#/build/$PLATFORM/doc/examples', duplicate=1, exports=[ 'example_files_allow_mpi' , 'example_files_no_mpi' ])
154 ksteube 1705
155 jfenwick 2402

  ViewVC Help
Powered by ViewVC 1.1.26