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

Annotation of /trunk/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2574 - (hide annotations)
Mon Aug 3 09:09:20 2009 UTC (10 years, 2 months ago) by gross
File size: 2766 byte(s)
matplotlib description added to usersguide
1 ksteube 1811
2     ########################################################
3 cochrane 369 #
4 jfenwick 2548 # Copyright (c) 2003-2009 by University of Queensland
5 ksteube 1811 # 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 gross 2574 'usersguide/poisson_matplotlib.py'
35 gross 2502 ]
36 cochrane 369
37 gross 2574 example_files_no_mpi = [
38     'usersguide/poisson_matplotlib.py'
39     'usersguide/poisson.py'
40     ]
41 gross 2502
42     example_files= example_files_allow_mpi + example_files_no_mpi
43    
44 jfenwick 2503
45     ex2=[ os.path.join("examples",str(x)) for x in example_files]
46    
47 gross 2502 #==========================================================================================
48    
49 ksteube 1705 local_env = clone_env(env)
50 jfenwick 2402 src_dir = local_env.Dir('.').srcnode().abspath
51 gross 2502 release_dir=local_env.Dir('#/release/doc/').srcnode().abspath
52 ksteube 1215
53 jfenwick 2402 tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
54 jfenwick 2503 "zip "+os.path.join(release_dir,"escript_examples.zip ") +" ".join(ex2),chdir=src_dir)
55 ksteube 2091 env.Alias('examples_zipfile', tmp1)
56 ksteube 1215
57 ksteube 1705
58 jfenwick 2405 #Need to use explicit tar rather than the tar builder due to problems getting it not to put
59     #unwanted path components in the tar file
60     #--transform on tar is not supported on savanna
61 jfenwick 2503 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)
62 jfenwick 2405 env.Alias('examples_tarfile',tmp2)
63    
64     #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
65     #if 'Tar' in dir(env): env.Tar('#/release/doc/escript_examples.tar.gz', example_files,chdir=src_dir)
66     #env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')
67    
68 gross 707 local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)
69 elspeth 712 local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1)
70 ksteube 1215 local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1)
71 jfenwick 2287 local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
72 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' ])
73 ksteube 1705
74 jfenwick 2402

  ViewVC Help
Powered by ViewVC 1.1.26