Commit e16a3a3f authored by Davis King's avatar Davis King

improved makedocs script

parent 6a5a3431
...@@ -11,6 +11,16 @@ htmlify_python_file () ...@@ -11,6 +11,16 @@ htmlify_python_file ()
pygmentize -f html -O full,style=vs $1 > $1.html pygmentize -f html -O full,style=vs $1 > $1.html
} }
build_python_interface ()
{
pushd ../python_examples
mkdir build
cd build || report_failure
cmake ../../tools/python || report_failure
make -j4 install || report_failure
popd
}
htmlify_cmake () htmlify_cmake ()
{ {
echo "<html><head><title>" > $1.html; echo "<html><head><title>" > $1.html;
...@@ -137,14 +147,13 @@ makedocs () ...@@ -137,14 +147,13 @@ makedocs ()
# the python docs can't be created (this happens if the .so file isn't compiled) # the python docs can't be created (this happens if the .so file isn't compiled)
if [ "$1" = "makerel" ] if [ "$1" = "makerel" ]
then then
pushd ../python_examples build_python_interface
./compile_dlib_python_module.bat || report_failure
popd
sphinx-build -b html docs/python sphinx.$$ || report_failure sphinx-build -b html docs/python sphinx.$$ || report_failure
else else
pushd ../python_examples if [ "$1" != "fast" ]
./compile_dlib_python_module.bat then
popd build_python_interface
fi;
sphinx-build -b html docs/python sphinx.$$ sphinx-build -b html docs/python sphinx.$$
fi; fi;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment