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

Diff of /trunk/doc/SConscript

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

trunk/doc/SConstruct revision 369 by cochrane, Fri Dec 16 00:51:22 2005 UTC trunk/doc/SConscript revision 712 by elspeth, Thu Apr 27 02:08:50 2006 UTC
# Line 1  Line 1 
1  # top-level Scons configuration file for all documentation building  # Scons configuration file for documentation
   
 import os  
   
 #  
 # ensure correct versions of python and scons  
   
 EnsurePythonVersion(2,3)  
 EnsureSConsVersion(0,96)  
2    
3    #          Copyright 2006 by ACcESS MNRF                  
4    #                                                          
5    #              http://www.access.edu.au                    
6    #       Primary Business: Queensland, Australia            
7    #  Licensed under the Open Software License version 3.0    
8    #     http://www.opensource.org/licenses/osl-3.0.php      
9    #                                                          
10  #  #
 # retreive command-line arguments if any  
 # these are passed through to SConscripts  
   
11  #  #
12  # set and export esysroot  # set appropriate defaults for configuration variables
   
 esysroot = Dir('#../')  
13    
14    import os
15  Import('*')  Import('*')
16    
17  Export(["esysroot"])  local_env=env.Copy()
   
 #  
 # call appropriate SConscripts  
18    
19  target_scripts = ['doxygen/SConscript',  # get all the examples:
20                    'epydoc/SConscript',  src_dir = local_env.Dir('examples').srcnode().abspath
21                    'user/SConscript']  example_files=[]
22    for x in os.listdir(src_dir):
23       if not x.startswith("."):
24          f = "examples/"+x
25          if os.path.isdir(src_dir+'/'+f):
26             example_files+=[ env.File(f+"/"+y) for y in os.listdir(src_dir+'/'+f) if not y.startswith('.')]
27          else:
28             example_files+=[ env.File(f) ]
29    env.Zip(examples_zipfile, example_files)
30    env.Tar(examples_tarfile, example_files)
31    
32  target_scripts = ['doxygen/SConscript',  # Call the doc build using SConscript
33                    'epydoc/SConscript']  local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)
34    
35  SConscript(target_scripts, duplicate=0)  local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1)

Legend:
Removed from v.369  
changed lines
  Added in v.712

  ViewVC Help
Powered by ViewVC 1.1.26