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

Annotation of /trunk/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2486 - (hide annotations)
Tue Jun 23 03:38:54 2009 UTC (10 years, 3 months ago) by gross
File size: 2325 byte(s)
a bit more info are printed for the DarcyFlux now.
1 ksteube 1811
2     ########################################################
3 cochrane 369 #
4 ksteube 1811 # Copyright (c) 2003-2008 by University of Queensland
5     # 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 cochrane 369
18 ksteube 1705 local_env = clone_env(env)
19 cochrane 369
20 ksteube 1215 # get all the file names in doc/examples:
21 jfenwick 2402 #src_dir = local_env.Dir('examples').srcnode().abspath
22     src_dir = local_env.Dir('.').srcnode().abspath
23     cur_dir = os.path.abspath(os.curdir)
24     outputdir=local_env.Dir('#/release/doc/').srcnode().abspath
25 ksteube 1215
26 jfenwick 2402 os.chdir(src_dir)
27     example_files = os.popen("find examples -name .svn -prune -o -type f -print").read().split(None)
28     os.chdir(cur_dir)
29 gross 2486 # extract all the example files:
30     # test_location=local_env.Dir('#/build/$PLATFORM/doc/examples')
31     # Command(src_dir, test_location, Copy("tempfile", "$SOURCE"))
32     # to_be_tested=[]
33     # for i in example_files:
34     # if i.endswith(".py"): to_be_tested.append(i)
35     # print to_be_tested
36 jfenwick 2402
37     tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
38 jfenwick 2405 "zip "+os.path.join(outputdir,"escript_examples.zip ") +" ".join(example_files),chdir=src_dir)
39 ksteube 2091 env.Alias('examples_zipfile', tmp1)
40 ksteube 1215
41 ksteube 1705
42 jfenwick 2405 #Need to use explicit tar rather than the tar builder due to problems getting it not to put
43     #unwanted path components in the tar file
44     #--transform on tar is not supported on savanna
45     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)
46     env.Alias('examples_tarfile',tmp2)
47    
48     #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
49     #if 'Tar' in dir(env): env.Tar('#/release/doc/escript_examples.tar.gz', example_files,chdir=src_dir)
50     #env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')
51    
52 gross 707 local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)
53 elspeth 712 local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1)
54 ksteube 1215 local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1)
55 jfenwick 2287 local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
56 ksteube 1705
57 jfenwick 2402

  ViewVC Help
Powered by ViewVC 1.1.26