]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mpl/doc/src/build.py
1 # Copyright (c) Aleksey Gurtovoy 2008-2009
3 # Distributed under the Boost Software License, Version 1.0.
4 # (See accompanying file LICENSE_1_0.txt or copy at
5 # http://www.boost.org/LICENSE_1_0.txt)
11 def build( src_dir
, build_dir
):
13 src
= os
.path
.join( build_dir
, 'refmanual.gen' )
16 if os
.path
.exists( src
):
19 if os
.path
.exists( build_dir
):
20 shutil
.rmtree( build_dir
)
25 os
.system( 'python %s %s' % ( os
.path
.join( src_dir
, 'refmanual.py' ), build_dir
) )
26 os
.system( 'rst2htmlrefdoc.py --traceback -g -d -t --no-frames --dont-copy-stylesheet --stylesheet-path=style.css %s refmanual.html' % src
)
33 os
.path
.join( os
.getcwd(), 'refmanual' )
34 , os
.path
.join( os
.getcwd(), '_build' )