From: vsr Date: Tue, 31 May 2005 14:01:18 +0000 (+0000) Subject: improving common.sh functions performance X-Git-Tag: V_2_2_4~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5d3f7163ae22c2ca40210fd0329cd5e2af9170a;p=tools%2Finstall.git improving common.sh functions performance --- diff --git a/config_files/HappyDoc-r2_1.sh b/config_files/HappyDoc-r2_1.sh index 2fc19ce..c0bed7c 100755 --- a/config_files/HappyDoc-r2_1.sh +++ b/config_files/HappyDoc-r2_1.sh @@ -81,6 +81,7 @@ check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_ #EOF #fi +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log rm -fr ${PRODUCT_WORK} print_env } diff --git a/config_files/Numeric-23.7.sh b/config_files/Numeric-23.7.sh index 1aec479..d632fa2 100755 --- a/config_files/Numeric-23.7.sh +++ b/config_files/Numeric-23.7.sh @@ -84,6 +84,7 @@ fi check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_DIR} +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log rm -fr ${PRODUCT_WORK} print_env } diff --git a/config_files/PyQt-3.13.sh b/config_files/PyQt-3.13.sh index 1080c50..ab9f7fc 100755 --- a/config_files/PyQt-3.13.sh +++ b/config_files/PyQt-3.13.sh @@ -94,6 +94,7 @@ EOF check_job ${PRODUCT_DIR}/MAKE.LOG make check_job ${PRODUCT_DIR}/INSTALL.LOG make install +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log rm -fr ${PRODUCT_WORK} print_env } diff --git a/config_files/SWIG-1.3.24.sh b/config_files/SWIG-1.3.24.sh index 74ffa6f..566ae77 100755 --- a/config_files/SWIG-1.3.24.sh +++ b/config_files/SWIG-1.3.24.sh @@ -69,6 +69,7 @@ EOF check_job ${PRODUCT_DIR}/MAKE.LOG make check_job ${PRODUCT_DIR}/INSTALL.LOG make install +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log rm -fr ${PRODUCT_WORK} print_env } diff --git a/config_files/VTK-4.2.6.sh b/config_files/VTK-4.2.6.sh index 5d62b0e..ccc4baa 100755 --- a/config_files/VTK-4.2.6.sh +++ b/config_files/VTK-4.2.6.sh @@ -142,6 +142,7 @@ rm -fr ${PRODUCT_WORK} ${INSTALL_WORK}/cmake-1.6.6 cd ${PRODUCT_DIR}/lib/python${python_version}/site-packages/vtk_python ln -sf ../../../vtk/*Python*.so . +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log rm -fr ${PRODUCT_WORK} print_env } diff --git a/config_files/graphviz-2.2.1.sh b/config_files/graphviz-2.2.1.sh index a3e7550..f4f1a5c 100755 --- a/config_files/graphviz-2.2.1.sh +++ b/config_files/graphviz-2.2.1.sh @@ -65,6 +65,7 @@ EOF check_job ${PRODUCT_DIR}/MAKE.LOG make check_job ${PRODUCT_DIR}/INSTALL.LOG make install +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log rm -fr ${PRODUCT_WORK} print_env } diff --git a/config_files/hdf5-1.6.3.sh b/config_files/hdf5-1.6.3.sh index cc0fd2a..bd56c8e 100755 --- a/config_files/hdf5-1.6.3.sh +++ b/config_files/hdf5-1.6.3.sh @@ -76,6 +76,7 @@ EOF check_job ${PRODUCT_DIR}/MAKE.LOG make check_job ${PRODUCT_DIR}/INSTALL.LOG make install +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log rm -fr ${PRODUCT_WORK} print_env } diff --git a/config_files/med-2.2.2.sh b/config_files/med-2.2.2.sh index aaf13ee..85cf5b7 100755 --- a/config_files/med-2.2.2.sh +++ b/config_files/med-2.2.2.sh @@ -73,6 +73,7 @@ EOF check_job ${PRODUCT_DIR}/MAKE.LOG make check_job ${PRODUCT_DIR}/INSTALL.LOG make install +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log rm -fr ${PRODUCT_WORK} ### modify libmed.la libmedC.la files to correct direct path to hdf5 library diff --git a/config_files/netgen-4.3.sh b/config_files/netgen-4.3.sh new file mode 100755 index 0000000..2df6bd4 --- /dev/null +++ b/config_files/netgen-4.3.sh @@ -0,0 +1,90 @@ +#!/bin/sh + +check_version() +{ +# check existance of netgen +# unfortunarely we can't find anything about netgen version +if [ -n "$NETGENROOT" ]; then + return 0 +fi +return 1 +} + +print_env() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${PRODUCT_DIR}/size.log +rm -fr ${PRODUCT_WORK} +print_env +} + +install_binary() +{ +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +check_jb tar xfz ${SOURCE_DIR}/netgen-4.3.tar.gz -C ${INSTALL_ROOT} + +print_env +} + +export PROCEDURE=$1; +export INSTALL_WORK=$2; +export SOURCE_DIR=$3; +export INSTALL_ROOT=$4; +export PRODUCT_SEQUENCE=$5; +if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="netgen" ; fi +export PRODUCT="netgen-4.3" +export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT} +export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} +source ./common.sh +$PROCEDURE diff --git a/config_files/netgen-4.4.sh b/config_files/netgen-4.4.sh index 8c7c804..7758e58 100755 --- a/config_files/netgen-4.4.sh +++ b/config_files/netgen-4.4.sh @@ -62,6 +62,7 @@ cp -f ${PRODUCT_WORK}/lib/LINUX/* ${PRODUCT_DIR}/lib/LINUX mkdir -p ${PRODUCT_DIR}/include cp -f ${PRODUCT_WORK}/libsrc/interface/nglib.h ${PRODUCT_DIR}/include +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log rm -fr ${PRODUCT_WORK} print_env } diff --git a/config_files/netgen4.3.sh b/config_files/netgen4.3.sh deleted file mode 100755 index 9387512..0000000 --- a/config_files/netgen4.3.sh +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/sh - -check_version() -{ -# check existance of netgen -# unfortunarely we can't find anything about netgen version -if [ -n "$NETGENROOT" ]; then - return 0 -fi -return 1 -} - -print_env() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${PRODUCT_DIR}/size.log rm -fr ${PRODUCT_WORK} print_env } diff --git a/config_files/qwt-4.2.0.sh b/config_files/qwt-4.2.0.sh index 11dd7cd..6ceebaf 100755 --- a/config_files/qwt-4.2.0.sh +++ b/config_files/qwt-4.2.0.sh @@ -66,6 +66,7 @@ EOF check_job ${PRODUCT_DIR}/MAKE.LOG make cp -rf include lib ${PRODUCT_DIR} +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log rm -rf ${PRODUCT_WORK} print_env diff --git a/config_files/sip-4.1.sh b/config_files/sip-4.1.sh index ef074b9..4d07206 100755 --- a/config_files/sip-4.1.sh +++ b/config_files/sip-4.1.sh @@ -82,6 +82,7 @@ EOF check_job ${PRODUCT_DIR}/MAKE.LOG make check_job ${PRODUCT_DIR}/INSTALL.LOG make install +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log rm -fr ${PRODUCT_WORK} print_env }