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

Contents of /trunk/doc/sphinx_api/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4141 - (show annotations)
Tue Jan 15 04:11:12 2013 UTC (7 years, 4 months ago) by jfenwick
File size: 1561 byte(s)
Fixed to scripts to allow doco to build in pbuilder.
Looking for libraries in the place they were built is a good I've found.

1
2 ##############################################################################
3 #
4 # Copyright (c) 2012 by University of Queensland
5 # http://www.uq.edu.au
6 #
7 # Primary Business: Queensland, Australia
8 # Licensed under the Open Software License version 3.0
9 # http://www.opensource.org/licenses/osl-3.0.php
10 #
11 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 # Development since 2012 by School of Earth Sciences
13 #
14 ##############################################################################
15
16 import os
17 Import('*')
18
19 local=env.Clone()
20
21 epy_dir=os.path.join(release_dir, 'sphinx_api')
22 local.Command(epy_dir, [], [Mkdir(epy_dir)])
23
24 int_dir=os.path.join(env['BUILD_DIR'], 'sphinx_int')
25 local.Command(int_dir, [], [Mkdir(int_dir)])
26 local['ENV']['LD_LIBRARY_PATH']+=(os.path.pathsep+os.path.join(local['prefix'],'lib'))
27
28 #env.Alias(os.path.join(int_dir,'index.rst'),[env['pyinstall'], int_dir],'doc/sphinx_api/genrst.py ./esys esys '+int_dir)
29
30 sphinxstuff=local.Command('stuff', [epy_dir, int_dir, env['pyinstall']], 'doc/sphinx_api/genrst.py '+env['prefix']+' esys '+int_dir+" && sphinx-build -b html -d "+int_dir+"/tree -c doc/sphinx_api "+int_dir+" "+epy_dir)
31
32 env.Alias('sphinxdoc', sphinxstuff)
33 #env.Alias('sphinxdoc', [epy_dir, int_dir], 'doc/sphinx_api/genrst.py '+env['prefix']+' esys '+int_dir+" && sphinx-build -b html -d "+int_dir+"/tree -c doc/sphinx_api "+int_dir+" "+epy_dir)
34
35 # This will need to be here at least until the output of api_epydoc properly
36 # depends on the libraries it uses as input
37 env.AlwaysBuild('sphinxdoc')
38

  ViewVC Help
Powered by ViewVC 1.1.26