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

Diff of /trunk/doc/SConscript

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

revision 2405 by jfenwick, Wed Apr 29 23:57:38 2009 UTC revision 2537 by jfenwick, Fri Jul 17 05:50:35 2009 UTC
# Line 14  Line 14 
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 = clone_env(env)  example_files_no_mpi = []
37    
38    example_files= example_files_allow_mpi + example_files_no_mpi
39    
 # get all the file names in doc/examples:  
 #src_dir = local_env.Dir('examples').srcnode().abspath  
 src_dir = local_env.Dir('.').srcnode().abspath  
 cur_dir = os.path.abspath(os.curdir)  
 outputdir=local_env.Dir('#/release/doc/').srcnode().abspath  
40    
41  os.chdir(src_dir)  ex2=[ os.path.join("examples",str(x)) for x in example_files]
 example_files = os.popen("find examples -name .svn -prune -o -type f -print").read().split(None)  
 os.chdir(cur_dir)  
42    
43  print example_files  #==========================================================================================
44    
45    local_env = clone_env(env)
46    src_dir = local_env.Dir('.').srcnode().abspath
47    release_dir=local_env.Dir('#/release/doc/').srcnode().abspath
48    
49  tmp1 = env.Command("#/release/doc/escript_examples.zip", None,  tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
50  "zip "+os.path.join(outputdir,"escript_examples.zip ") +" ".join(example_files),chdir=src_dir)  "zip "+os.path.join(release_dir,"escript_examples.zip ") +" ".join(ex2),chdir=src_dir)
51  env.Alias('examples_zipfile', tmp1)  env.Alias('examples_zipfile', tmp1)
52    
53    
54  #Need to use explicit tar rather than the tar builder due to problems getting it not to put  #Need to use explicit tar rather than the tar builder due to problems getting it not to put
55  #unwanted path components in the tar file  #unwanted path components in the tar file
56  #--transform on tar is not supported on savanna  #--transform on tar is not supported on savanna
57  tmp2 = env.Command("#/release/doc/escript_examples.tar.gz", None, "tar -czf "+os.path.join(outputdir,"escript_examples.tar.gz ")+"  ".join(example_files), chdir=src_dir)  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)
58  env.Alias('examples_tarfile',tmp2)  env.Alias('examples_tarfile',tmp2)
59    
60  #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)  #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
# Line 48  local_env.SConscript(dirs = ['#/doc/user Line 65  local_env.SConscript(dirs = ['#/doc/user
65  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)
66  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)
67  local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)  local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
68    local_env.SConscript(dirs = ['#/doc/examples'], build_dir='#/build/$PLATFORM/doc/examples', duplicate=1, exports=[ 'example_files_allow_mpi' , 'example_files_no_mpi' ])
69    
70    

Legend:
Removed from v.2405  
changed lines
  Added in v.2537

  ViewVC Help
Powered by ViewVC 1.1.26