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

Diff of /trunk/doc/doxygen/SConscript

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

revision 488 by jgs, Thu Feb 2 06:19:23 2006 UTC revision 2548 by jfenwick, Mon Jul 20 06:20:06 2009 UTC
# Line 1  Line 1 
 # Scons configuration file for doxygen docs  
   
 import os  
1    
2    ########################################################
3  #  #
4  # set appropriate defaults for configuration variables  # Copyright (c) 2003-2009 by University of Queensland
5    # Earth Systems Science Computational Center (ESSCC)
6  esysroot=str(Dir('../..').abspath)  # http://www.uq.edu.au/esscc
 execfile(str(File(esysroot+"/scons/esys_options.py")))  
   
7  #  #
8  # construct the script to run doxygen  # Primary Business: Queensland, Australia
9    # Licensed under the Open Software License version 3.0
10  rundoxygen_script = open(str(File(esysroot+"/doc/doxygen/rundoxygen")), 'w')  # http://www.opensource.org/licenses/osl-3.0.php
 rundoxygen_script.write(str("#!/bin/bash\n"))  
 rundoxygen_script.write(str(doxygen_path+"/doxygen doxygen/doxygen_esys > doxygen_msgs.txt 2>&1\n"))  
 rundoxygen_script.close()  
   
 os.chmod(str(File(esysroot+"/doc/doxygen/rundoxygen")), 0700)  
   
11  #  #
12  # do the actual build  ########################################################
13    
 import scons_extensions  
14    
15  source = 'rundoxygen'  import os
16    Import('*')
17    
18    
19  doxygen_env = Environment(ENV = os.environ)  tmp = env.Command(env.Dir(env['prefix']+'/release/doc/doxygen'), [], [Mkdir(env['prefix']+'/release/doc/doxygen')])
20    
 runDoxygen_builder = Builder(action = scons_extensions.build_doxygen, suffix = ".run", single_source = True)  
 doxygen_env.Append(BUILDERS = {'RunDoxygen' : runDoxygen_builder})  
21    
22  Default(doxygen_env.RunDoxygen(source))  #Now some magic from the doxygen FAQ to get the global revision number into the doxyfile
23    if os.name=='posix':
24        env.Alias('api_doxygen',[env.Dir(env['prefix']+'/release/doc/doxygen')],['(cat doc/doxygen/doxygen_esys; echo "PROJECT_NUMBER=\"Revision_`svnversion`\"" ) | doxygen - '])
25    else:
26        env.Alias('api_doxygen',[env.Dir(env['prefix']+'/release/doc/doxygen')],["doxygen doc/doxygen/doxygen_esys"])
27    env.AlwaysBuild('api_doxygen')

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

  ViewVC Help
Powered by ViewVC 1.1.26