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

Diff of /trunk/doc/SConscript

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

temp_trunk_copy/doc/SConscript revision 1384 by phornby, Fri Jan 11 02:29:38 2008 UTC trunk/doc/SConscript revision 2409 by jfenwick, Tue May 5 06:22:11 2009 UTC
# Line 1  Line 1 
 # Scons configuration file for documentation  
1    
2  #          Copyright 2006 by ACcESS MNRF                    ########################################################
 #                                                            
 #              http://www.access.edu.au                      
 #       Primary Business: Queensland, Australia              
 #  Licensed under the Open Software License version 3.0      
 #     http://www.opensource.org/licenses/osl-3.0.php        
 #                                                            
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  # set appropriate defaults for configuration variables  # 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  local_env=env.Copy()  local_env = clone_env(env)
19    
20  # get all the file names in doc/examples:  # get all the file names in doc/examples:
21  src_dir = local_env.Dir('examples').srcnode().abspath  #src_dir = local_env.Dir('examples').srcnode().abspath
22  example_files = os.popen("find " + src_dir + " -name .svn -prune -o -type f -print").read().split(None)  src_dir = local_env.Dir('.').srcnode().abspath
23    cur_dir = os.path.abspath(os.curdir)
24  env.Zip(examples_zipfile, example_files)  outputdir=local_env.Dir('#/release/doc/').srcnode().abspath
25  env.Tar(examples_tarfile, example_files)  
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    tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
31    "zip "+os.path.join(outputdir,"escript_examples.zip ") +" ".join(example_files),chdir=src_dir)
32    env.Alias('examples_zipfile', tmp1)
33    
34    
35    #Need to use explicit tar rather than the tar builder due to problems getting it not to put
36    #unwanted path components in the tar file
37    #--transform on tar is not supported on savanna
38    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)
39    env.Alias('examples_tarfile',tmp2)
40    
41    #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
42    #if 'Tar' in dir(env): env.Tar('#/release/doc/escript_examples.tar.gz', example_files,chdir=src_dir)
43    #env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')
44    
 # Call the doc build using SConscript  
45  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)
   
46  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)
47  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)
48    local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
49    
50    

Legend:
Removed from v.1384  
changed lines
  Added in v.2409

  ViewVC Help
Powered by ViewVC 1.1.26