/[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 1796 by jfenwick, Wed Sep 17 01:45:46 2008 UTC revision 2636 by jfenwick, Thu Aug 27 05:26:42 2009 UTC
# Line 1  Line 1 
1    
2    ########################################################
3  #  #
4  # $Id$  # Copyright (c) 2003-2009 by University of Queensland
5  #  # Earth Systems Science Computational Center (ESSCC)
6  #######################################################  # http://www.uq.edu.au/esscc
 #  
 #           Copyright 2003-2007 by ACceSS MNRF  
 #       Copyright 2007 by University of Queensland  
 #  
 #                http://esscc.uq.edu.au  
 #        Primary Business: Queensland, Australia  
 #  Licensed under the Open Software License version 3.0  
 #     http://www.opensource.org/licenses/osl-3.0.php  
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  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/heatedblock.py',
29     'usersguide/helmholtz.py',
30     'usersguide/fluid.py',
31     'usersguide/poisson.py',
32     'usersguide/diffusion.py',
33     'usersguide/poisson_vtk.py'
34    ]
35    
36    example_files_no_mpi = [
37    ]
38    
39    #Now we add tests which depend on matplotlib
40    try:
41       import matplotlib
42       example_files_no_mpi.append('usersguide/poisson_matplotlib.py')
43       example_files_allow_mpi.append('usersguide/wave.py')
44       #example_files_no_mpi.append('cookbook/heatrefraction_mesher001.py')
45       #example_files_no_mpi.append('cookbook/heatrefraction_mesher002.py')
46       #example_files_no_mpi.append('cookbook/heatrefraction001.py')
47       #example_files_no_mpi.append('cookbook/heatrefraction002.py')
48       #example_files_no_mpi.append('cookbook/onedheatdiff001.py')
49       #example_files_no_mpi.append('cookbook/onedheatdiff002.py')
50       #example_files_no_mpi.append('cookbook/twodheatdiff.py')
51    except ImportError:
52       print "matplotlib not found - skipping example"
53    
54    example_files= example_files_allow_mpi + example_files_no_mpi
55    
56    
57    ex2=[ os.path.join("examples",str(x)) for x in example_files]
58    
59    #==========================================================================================
60    
61  local_env = clone_env(env)  local_env = clone_env(env)
62    src_dir = local_env.Dir('.').srcnode().abspath
63    release_dir=local_env.Dir('#/release/doc/').srcnode().abspath
64    
65  # get all the file names in doc/examples:  tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
66  src_dir = local_env.Dir('examples').srcnode().abspath  "zip "+os.path.join(release_dir,"escript_examples.zip ") +" ".join(ex2),chdir=src_dir)
67  example_files = os.popen("find " + src_dir + " -name .svn -prune -o -type f -print").read().split(None)  env.Alias('examples_zipfile', tmp1)
68    
69  if 'Zip' in dir(env): env.Zip('#release/doc/escript_examples.zip', example_files)  
70  env.Alias('examples_zipfile', '#release/doc/escript_examples.zip')  #Need to use explicit tar rather than the tar builder due to problems getting it not to put
71    #unwanted path components in the tar file
72  env=Environment(TARFLAGS = '-c -z')  #--transform on tar is not supported on savanna
73  if 'Tar' in dir(env): env.Tar('#release/doc/escript_examples.tar.gz', example_files)  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)
74  env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')  env.Alias('examples_tarfile',tmp2)
75    
76    #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
77    #if 'Tar' in dir(env): env.Tar('#/release/doc/escript_examples.tar.gz', example_files,chdir=src_dir)
78    #env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')
79    
80  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)
81  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)
82  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)
83    local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
84    local_env.SConscript(dirs = ['#/doc/examples'], build_dir='#/build/$PLATFORM/doc/examples', duplicate=1, exports=[ 'example_files_allow_mpi' , 'example_files_no_mpi' ])
85    
86    

Legend:
Removed from v.1796  
changed lines
  Added in v.2636

  ViewVC Help
Powered by ViewVC 1.1.26