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

Annotation of /trunk/doc/epydoc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 489 - (hide annotations)
Thu Feb 2 06:27:15 2006 UTC (14 years, 6 months ago) by jgs
File size: 976 byte(s)
fix message file paths
1 cochrane 369 # Scons configuration file for epydoc docs
2    
3     import os
4    
5     #
6     # set appropriate defaults for configuration variables
7    
8 jgs 485 esysroot=str(Dir('../..').abspath)
9     execfile(str(File(esysroot+"/scons/esys_options.py")))
10 cochrane 369
11 jgs 488 #
12     # construct the script to run epydoc
13 cochrane 369
14 jgs 488 runepydoc_script = open(str(File(esysroot+"/doc/epydoc/runepydoc")), 'w')
15     runepydoc_script.write(str("#!/bin/bash\n"))
16     runepydoc_script.write(str("export PYTHONPATH="+epydoc_pythonpath+"\n"))
17 jgs 489 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"))
18 jgs 488 runepydoc_script.close()
19    
20     os.chmod(str(File(esysroot+"/doc/epydoc/runepydoc")), 0700)
21    
22 cochrane 369 #
23     # do the actual build
24    
25 jgs 488 import scons_extensions
26    
27 cochrane 369 source = 'runepydoc'
28    
29     epydoc_env = Environment(ENV = os.environ)
30    
31     runEpydoc_builder = Builder(action = scons_extensions.build_epydoc, suffix = ".run")
32     epydoc_env.Append(BUILDERS = {'RunEpydoc' : runEpydoc_builder})
33    
34     Default(epydoc_env.RunEpydoc(source))

  ViewVC Help
Powered by ViewVC 1.1.26