BUILD_DIR=$(pwd)
LOG_DIR=${BUILD_DIR}/LOGS
+if [ "${nbjobs}" != "" ] ; then
+ nbjobs="-j${nbjobs}"
+fi
###
# create log directory
module_src=${!module_src}
module_build=${BUILD_DIR}/${module}_BUILD
without_gui=0
- if [ "${nbjobs}" != "" ] ; then nbjobs="-j${nbjobs}" ; fi
cd ${BUILD_DIR}
px="${prefix}/${module}${vx}"
###
- # run CMake
+ # run cmake
###
echo ".... Running cmake"
fi
# run cmake
- ( cd ${module_build} && cmake ${module_src} -DCMAKE_INSTALL_PREFIX=${px} ${module_cmake_options} >& ${LOG_DIR}/${module}_cmake.log )
+
+ echo "========================================================================" > ${LOG_DIR}/${module}_cmake.log
+ echo "cmake ${module_src} -DCMAKE_INSTALL_PREFIX=${px} ${module_cmake_options}" >> ${LOG_DIR}/${module}_cmake.log
+ echo "========================================================================" >> ${LOG_DIR}/${module}_cmake.log
+ ( cd ${module_build} && cmake ${module_src} -DCMAKE_INSTALL_PREFIX=${px} ${module_cmake_options} >> ${LOG_DIR}/${module}_cmake.log 2>&1 )
sts=$?
# print errors/warnings
echo ".... Running make"
# run make
- ( cd ${module_build} && make ${nbjobs} >& ${LOG_DIR}/${module}_make.log )
+ echo "========================================================================" > ${LOG_DIR}/${module}_make.log
+ echo "make ${nbjobs}" >> ${LOG_DIR}/${module}_make.log
+ echo "========================================================================" >> ${LOG_DIR}/${module}_make.log
+ ( cd ${module_build} && make ${nbjobs} >> ${LOG_DIR}/${module}_make.log 2>&1 )
sts=$?
# print errors/warnings
supports_build_tui ${module}
if [ "$?" = "0" ] ; then
echo ".... Running make dev_docs"
- ( cd ${module_build} && make dev_docs >& ${LOG_DIR}/${module}_make_devdocs.log )
+ echo "========================================================================" > ${LOG_DIR}/${module}_make_devdocs.log
+ echo "make dev_docs" >> ${LOG_DIR}/${module}_make_devdocs.log
+ echo "========================================================================" >> ${LOG_DIR}/${module}_make_devdocs.log
+ ( cd ${module_build} && make dev_docs >> ${LOG_DIR}/${module}_make_devdocs.log 2>&1 )
cat ${LOG_DIR}/${module}_make_devdocs.log | grep '[*][*][*]' >&2
fi
fi
###
echo ".... Running make install"
- ( cd ${module_build} && make install >& ${LOG_DIR}/${module}_make_install.log )
+ echo "========================================================================" > ${LOG_DIR}/${module}_make_install.log
+ echo "make install" >> ${LOG_DIR}/${module}_make_install.log
+ echo "========================================================================" >> ${LOG_DIR}/${module}_make_install.log
+ ( cd ${module_build} && make install >> ${LOG_DIR}/${module}_make_install.log 2>&1 )
sts=$?
if [ "${sts}" != "0" ] ; then