set is_delete=0
set verbose_level=2
set params=""
-set modules=(KERNEL GUI GEOM MED SMESH VISU YACS NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN COMPONENT PYCALCULATOR CALCULATOR HELLO PYHELLO LIGHT PYLIGHT SIERPINSKY RANDOMIZER MULTIPR JOBMANAGER)
+set modules=(KERNEL GUI GEOM MED SMESH VISU PARAVIS YACS NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN COMPONENT PYCALCULATOR CALCULATOR HELLO PYHELLO LIGHT PYLIGHT SIERPINSKY RANDOMIZER MULTIPR JOBMANAGER)
set optim=""
set is_install=1
set is_help=0
#########################################################
# check if build_configure script exists
#########################################################
- if ( ! -e ${module_src}/build_configure ) then
+ if ( ! -e ${module_src}/build_configure && "${module}" != "PARAVIS") then
echo "\!\!\! Warning \!\!\! Can not find build_configure script in ${module_src}."
- else
+ else
+ if ( "${module}" == "PARAVIS" ) then
+ echo "\!\!\! Warning \!\!\! build_configure step is not executed for ${module}."
+ else
#########################################################
# call build_configure
#########################################################
cat ${LOG_DIR}/build_configure_${module}.log | grep -E "(failed|: error:)" >/dev/stderr
endif
endif
+ endif
endif
#########################################################
# deleting build directory if -d flag is given
if ( "$vx" == "" ) then
set vx=`grep -e "^AC_INIT" ${module_src}/configure.in.base | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
endif
+ else if ( -e ${module_src}/CMakeLists.txt ) then
+ set ver_maj=`cat ${module_src}/CMakeLists.txt | grep SET\(VERSION_MAJOR | sed -e "s%[A-Z_() ]%%g"`
+ set ver_min=`cat ${module_src}/CMakeLists.txt | grep SET\(VERSION_MINOR | sed -e "s%[A-Z_() ]%%g"`
+ set ver_maintenance=`cat ${module_src}/CMakeLists.txt | grep SET\(VERSION_MAINTENANCE | sed -e "s%[A-Z_() ]%%g"`
+ set vx="${ver_maj}.${ver_min}.${ver_maintenance}"
endif
if ( "$vx" != "" ) then
set vx="_$vx"
#########################################################
# check if configure script exists
#########################################################
- if ( ! -e ${module_src}/configure ) then
+ if ( ! -e ${module_src}/configure && "${module}" != "PARAVIS" ) then
echo "\!\!\! Warning \!\!\! Can not find configure script in ${module_src}."
else
- set myconf_keys="${CONF_OPTS}"
+# set myconf_keys="${CONF_OPTS}"
if ( $inst_with_gui == 0 ) then
set myconf_keys="${myconf_keys} --without-gui"
endif
if ( "${module}" == "NETGENPLUGIN" && ($?NETGENHOME) ) then
set myconf_keys="${myconf_keys} --with-netgen=${NETGENHOME}"
endif
- ${module_src}/configure --prefix=$px ${optim} ${myconf_keys} >& ${LOG_DIR}/configure_${module}.log
+ if ( "${module}" == "PARAVIS" ) then
+ cd ${module_build}; cmake ${module_src} -DCMAKE_INSTALL_PREFIX=$px >& ${LOG_DIR}/configure_${module}.log
+ else
+ ${module_src}/configure --prefix=$px ${optim} ${myconf_keys} >& ${LOG_DIR}/configure_${module}.log
+ endif
#########################################################
# echo possible errors
#########################################################
#########################################################
# check if build_configure script exists
#########################################################
- if [ ! -e ${module_src}/build_configure ] || [ "${module}" != "PARAVIS" ] ; then
+ if [ ! -e ${module_src}/build_configure ] && [ "${module}" != "PARAVIS" ] ; then
echo '!!! Warning !!! Cannot find build_configure script in '${module_src}'.'
else
- if [ "${module}" != "PARAVIS" ]; then
+ if [ "${module}" == "PARAVIS" ]; then
echo '!!! Warning !!! build_configure step is not executed for '${module}'.'
else
#########################################################
#########################################################
# check if configure script exists
#########################################################
- if [ ! -e ${module_src}/configure ] ; then
+ if [ ! -e ${module_src}/configure ] && [ "${module}" != "PARAVIS" ] ; then
echo
echo '!!! Warning !!! Can not find configure script in '${module_src}'.'
echo
if [ "${module}" == "NETGENPLUGIN" ] && [ "$NETGENHOME" != "" ] ; then
myconf_keys="${myconf_keys} --with-netgen=${NETGENHOME}"
fi
+
+ if [ "${module}" == "PARAVIS" ] ; then
+ cd ${module_build}; cmake ${module_src} -DCMAKE_INSTALL_PREFIX=$px >& ${LOG_DIR}/configure_${module}.log
+ else
${module_src}/configure --prefix=$px ${optim} ${myconf_keys} >& ${LOG_DIR}/configure_${module}.log
+ fi
+
#########################################################
# echo possible errors
#########################################################
echo
fi
fi
- echo "... Performing make install"
+ echo "... Performing make instal"
make install >& ${LOG_DIR}/make_install_${module}.log
sts=$?
#########################################################