#!/bin/bash
mkdir -p build
cd build
#python ../sources/cctbx_project/libtbx/configure.py --enable_openmp_if_possible=True --scan_boost --build=release rstbx omptbx ucif smtbx mmtbx clipper_adaptbx fable scitbx #antlr3 #fftw3tbx
python ../sources/cctbx_project/libtbx/configure.py --enable_openmp_if_possible=True --scan_boost --build=release boost_adaptbx cctbx chiltbx crys3d cma_es gltbx iotbx ipctbx mmtbx rstbx ucif smtbx clipper_adaptbx fable scitbx #antlr3 #fftw3tbx
#python ../sources/cctbx_project/libtbx/configure.py --enable_openmp_if_possible=True --scan_boost --build=release boost_adaptbx cctbx chiltbx crys3d cma_es iotbx ipctbx mmtbx rstbx ucif smtbx clipper_adaptbx fable scitbx #antlr3 #fftw3tbx
#python ../sources/cctbx_project/libtbx/configure.py --enable_openmp_if_possible=True --build=release rstbx ucif smtbx mmtbx clipper_adaptbx fable scitbx #antlr3 #fftw3tbx
source setpaths.sh
make || { echo "Grml. Make failed!"; exit 1; }
echo
echo "*******************************************"
echo "*           Make finished                 *"
echo "*******************************************"
echo
echo "*******************************************"
echo "*           Building Docs                 *"
echo "*******************************************"
echo
source setpaths_all.sh
cp -arf ../sources/cctbx_project/dox.sphinx .
cd dox.sphinx
./build_docs.sh
cd ../..
echo
echo "*******************************************"
echo "*      Done building Docs                 *"
echo "*******************************************"
echo
./checkme.sh 
#python
