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

Diff of /trunk/doc/SConscript

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

temp_trunk_copy/doc/SConscript revision 1384 by phornby, Fri Jan 11 02:29:38 2008 UTC trunk/doc/SConscript revision 2648 by jfenwick, Mon Sep 7 00:06:15 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-2009 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  local_env=env.Copy()  example_deps = ['cookbook/cblib.py']
19    
20  # get all the file names in doc/examples:  #
21  src_dir = local_env.Dir('examples').srcnode().abspath  # these are the release examples in example sub directory:
22  example_files = os.popen("find " + src_dir + " -name .svn -prune -o -type f -print").read().split(None)  #
23    example_files_allow_mpi = [
24  env.Zip(examples_zipfile, example_files)   'geotutorial/steadystate_variablek.py',
25  env.Tar(examples_tarfile, example_files)   'geotutorial/steadystate.py',
26     'geotutorial/forward_euler.py',
27     'geotutorial/myfirstscript.py',
28     'geotutorial/backward_euler.py',
29     'usersguide/lit_driven_cavity.py',
30     'usersguide/mount.py',
31     'usersguide/heatedblock.py',
32     'usersguide/helmholtz.py',
33     'usersguide/fluid.py',
34     'usersguide/poisson.py',
35     'usersguide/diffusion.py',
36     'usersguide/poisson_vtk.py'
37    ]
38    
39    example_files_no_mpi = [
40    ]
41    
42    #Now we add tests which depend on matplotlib
43    try:
44       from matplotlib.mlab import griddata
45       example_files_no_mpi.append('usersguide/poisson_matplotlib.py')
46       example_files_allow_mpi.append('usersguide/wave.py')
47    #   example_deps.append('cookbook/heatrefraction_mesher001.py')
48    #   example_deps.append('cookbook/heatrefraction_mesher002.py')
49    #   example_deps.append('cookbook/heatrefraction001.py')
50    #   example_deps.append('cookbook/heatrefraction002.py')
51    #   example_files_no_mpi.append('cookbook/onedheatdiff001.py')
52    #   example_files_no_mpi.append('cookbook/onedheatdiff002.py')
53    #   example_files_no_mpi.append('cookbook/twodheatdiff.py')
54       import os
55       if os.system("gmsh -version")/256 ==0:   #gmsh found on this system
56    #   example_files_no_mpi.append('cookbook/test_heatref.py')
57        pass
58       else:
59        print "gmsh not found skipping examples"
60    except ImportError:
61       print "matplotlib not found - skipping example"
62    
63    example_files= example_files_allow_mpi + example_files_no_mpi + example_deps
64    
65    
66    ex2=[ os.path.join("examples",str(x)) for x in example_files]
67    
68    #==========================================================================================
69    
70    local_env = clone_env(env)
71    src_dir = local_env.Dir('.').srcnode().abspath
72    release_dir=local_env.Dir('#/release/doc/').srcnode().abspath
73    
74    tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
75    "zip "+os.path.join(release_dir,"escript_examples.zip ") +" ".join(ex2),chdir=src_dir)
76    env.Alias('examples_zipfile', tmp1)
77    
78    
79    #Need to use explicit tar rather than the tar builder due to problems getting it not to put
80    #unwanted path components in the tar file
81    #--transform on tar is not supported on savanna
82    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)
83    env.Alias('examples_tarfile',tmp2)
84    
85    #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
86    #if 'Tar' in dir(env): env.Tar('#/release/doc/escript_examples.tar.gz', example_files,chdir=src_dir)
87    #env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')
88    
 # Call the doc build using SConscript  
89  local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)  local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)
   
90  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)
91  local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1)  local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1)
92    local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
93    local_env.SConscript(dirs = ['#/doc/examples'], build_dir='#/build/$PLATFORM/doc/examples', duplicate=1, exports=[ 'example_files_allow_mpi' , 'example_files_no_mpi', 'example_deps' ])
94    
95    

Legend:
Removed from v.1384  
changed lines
  Added in v.2648

  ViewVC Help
Powered by ViewVC 1.1.26