/[escript]/branches/domexper/doc/SConscript
ViewVC logotype

Diff of /branches/domexper/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1133 by gross, Tue May 8 07:19:33 2007 UTC revision 2502 by gross, Tue Jun 30 05:49:22 2009 UTC
# Line 1  Line 1 
 # Scons configuration file for documentation  
1    
2  #          Copyright 2006 by ACcESS MNRF                    ########################################################
 #                                                            
 #              http://www.access.edu.au                      
 #       Primary Business: Queensland, Australia              
 #  Licensed under the Open Software License version 3.0      
 #     http://www.opensource.org/licenses/osl-3.0.php        
 #                                                            
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  # set appropriate defaults for configuration variables  # 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  import os
16  Import('*')  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  local_env=env.Copy()  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  # get all the examples:  example_files= example_files_allow_mpi + example_files_no_mpi
127  src_dir = local_env.Dir('examples').srcnode().abspath  
128  example_files=[]  #==========================================================================================
129  for x in os.listdir(src_dir):  
130     if not x.startswith("."):  local_env = clone_env(env)
131        f = "examples/"+x  src_dir = local_env.Dir('.').srcnode().abspath
132        if os.path.isdir(src_dir+'/'+f):  release_dir=local_env.Dir('#/release/doc/').srcnode().abspath
          example_files+=[ env.File(f+"/"+y) for y in os.listdir(src_dir+'/'+f) if not y.startswith('.')]  
       else:  
          example_files+=[ env.File(f) ]  
 env.Zip(examples_zipfile, example_files)  
 try:  
   env.Tar(examples_tarfile, example_files)  
 except AttributeError:  
   pass  
 # Call the doc build using SConscript  
 local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)  
133    
134    tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
135    "zip "+os.path.join(release_dir,"escript_examples.zip ") +" ".join(example_files),chdir=src_dir)
136    env.Alias('examples_zipfile', tmp1)
137    
138    
139    #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    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    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    local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)
150  local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1)  local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1)
151    local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1)
152    local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
153    local_env.SConscript(dirs = ['#/doc/examples'], build_dir='#/build/$PLATFORM/doc/examples', duplicate=1, exports=[ 'example_files_allow_mpi' , 'example_files_no_mpi' ])
154    
155    

Legend:
Removed from v.1133  
changed lines
  Added in v.2502

  ViewVC Help
Powered by ViewVC 1.1.26