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

Contents of /trunk/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2405 - (show annotations)
Wed Apr 29 23:57:38 2009 UTC (10 years, 5 months ago) by jfenwick
File size: 2068 byte(s)
Another attempt at building the doco.
--transform is not supported by savanna's tar

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2008 by University of Queensland
5 # Earth Systems Science Computational Center (ESSCC)
6 # http://www.uq.edu.au/esscc
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
16 Import('*')
17
18 local_env = clone_env(env)
19
20 # get all the file names in doc/examples:
21 #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
26 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
30 print example_files
31
32 tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
33 "zip "+os.path.join(outputdir,"escript_examples.zip ") +" ".join(example_files),chdir=src_dir)
34 env.Alias('examples_zipfile', tmp1)
35
36
37 #Need to use explicit tar rather than the tar builder due to problems getting it not to put
38 #unwanted path components in the tar file
39 #--transform on tar is not supported on savanna
40 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)
41 env.Alias('examples_tarfile',tmp2)
42
43 #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
44 #if 'Tar' in dir(env): env.Tar('#/release/doc/escript_examples.tar.gz', example_files,chdir=src_dir)
45 #env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')
46
47 local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)
48 local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1)
49 local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1)
50 local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
51
52

  ViewVC Help
Powered by ViewVC 1.1.26