/[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 369 by cochrane, Fri Dec 16 00:51:22 2005 UTC revision 488 by jgs, Thu Feb 2 06:19:23 2006 UTC
# Line 1  Line 1 
1  # Scons configuration file for epydoc docs  # Scons configuration file for epydoc docs
2    
3  import os  import os
 import sys  
   
 #  
 # ensure correct versions of python and scons  
   
 EnsurePythonVersion(2,3)  
 EnsureSConsVersion(0,96)  
4    
5  #  #
6  # set appropriate defaults for configuration variables  # set appropriate defaults for configuration variables
7    
8  esysroot = Dir('#../..')  esysroot=str(Dir('../..').abspath)
9    execfile(str(File(esysroot+"/scons/esys_options.py")))
10    
11  #  #
12  # import configuration variables passed in from  # construct the script to run epydoc
 # calling SConscript (if any)  
   
 Import('*')  
13    
14  #  runepydoc_script = open(str(File(esysroot+"/doc/epydoc/runepydoc")), 'w')
15  # load configuration settings  runepydoc_script.write(str("#!/bin/bash\n"))
16    runepydoc_script.write(str("export PYTHONPATH="+epydoc_pythonpath+"\n"))
17    runepydoc_script.write(str(epydoc_path+"/epydoc --html -o "+esysroot+"/doc/lib/html/epydoc -n esys esys > epydoc_msgs.txt 2>&1\n"))
18    runepydoc_script.close()
19    
20  options_dir = str(esysroot) + '/scons'  os.chmod(str(File(esysroot+"/doc/epydoc/runepydoc")), 0700)
 sys.path.append(options_dir)  
21    
22  #  #
23  # do the actual build  # do the actual build
24    
25    import scons_extensions
26    
27  source = 'runepydoc'  source = 'runepydoc'
28    
29  epydoc_env = Environment(ENV = os.environ)  epydoc_env = Environment(ENV = os.environ)
30    
 import scons_extensions  
31  runEpydoc_builder = Builder(action = scons_extensions.build_epydoc, suffix = ".run")  runEpydoc_builder = Builder(action = scons_extensions.build_epydoc, suffix = ".run")
32  epydoc_env.Append(BUILDERS = {'RunEpydoc' : runEpydoc_builder})  epydoc_env.Append(BUILDERS = {'RunEpydoc' : runEpydoc_builder})
33    

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

  ViewVC Help
Powered by ViewVC 1.1.26