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

Diff of /trunk/doc/epydoc/SConscript

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

revision 498 by jgs, Tue Feb 7 01:53:47 2006 UTC revision 712 by elspeth, Thu Apr 27 02:08:50 2006 UTC
# Line 1  Line 1 
1  # Scons configuration file for epydoc docs  # Scons configuration file for documentation
   
 import os  
   
 #  
 # set appropriate defaults for configuration variables  
   
 esysroot=str(Dir('../..').abspath)  
 execfile(str(File(esysroot+"/scons/esys_options.py")))  
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  #  #
 # construct the script to run epydoc  
   
 runepydoc_script = open(str(File(esysroot+"/doc/epydoc/runepydoc")), 'w')  
 runepydoc_script.write(str("#!/bin/bash\n"))  
 runepydoc_script.write(str("export PYTHONPATH="+epydoc_pythonpath+"\n"))  
 runepydoc_script.write(str(epydoc_path+"/epydoc --html -o "+esysroot+"/doc/lib/html/epydoc -n esys esys > "+esysroot+"/doc/epydoc_msgs.txt 2>&1\n"))  
 runepydoc_script.close()  
   
 os.chmod(str(File(esysroot+"/doc/epydoc/runepydoc")), 0700)  
   
11  #  #
12  # do the actual build  # builds the user's guide
13    
14  import scons_extensions  # command to run:
15    # epydoc --html -o doc/epydoc -n esys esys > /tmp/epydoc_msgs.txt 2>&1
16    
17  source = 'runepydoc'  import os
18    Import('*')
 epydoc_env = Environment(ENV = os.environ)  
19    
20  runEpydoc_builder = Builder(action = scons_extensions.build_epydoc, suffix = ".run")  #local_env.PrependENVPath('PYTHONPATH',str(pyinstall))
21  epydoc_env.Append(BUILDERS = {'RunEpydoc' : runEpydoc_builder})  env.Command(api_epydoc, pyinstall,"epydoc --html -o $TARGET esys esys")
22    
 Alias("build_docs", epydoc_env.RunEpydoc(source))  

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

  ViewVC Help
Powered by ViewVC 1.1.26