From: vsr Date: Tue, 16 May 2006 15:11:20 +0000 (+0000) Subject: Fix a bug of procedure modifying *.la files X-Git-Tag: mergeto_SALOME_3_17May06~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=91fc7822addc467a9adde5af22f6883285666fe3;p=tools%2Finstall.git Fix a bug of procedure modifying *.la files --- diff --git a/config_files/common.sh b/config_files/common.sh index 9c38ddb..ff7d027 100755 --- a/config_files/common.sh +++ b/config_files/common.sh @@ -493,6 +493,7 @@ srcdir=`pwd` SALOME_MODULES="`env | awk -F_ '/[[:alnum:]]*_ROOT_DIR/ { print $1 }'`" cd $ldir +ldir=`pwd` la_files=`find . -name "*.la"` for l in X ${la_files}; do @@ -594,6 +595,8 @@ if [ "$l" != "X" ] ; then fi # 13. modify libdir #sed -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib/salome'%g" $l > $l"_" + mod=`basename $ldir | awk -F_ '{print $1}'` + moddir=`printenv ${mod}_ROOT_DIR` sed -e "s%^libdir='[^[:space:]]*${mod}[^[:space:]]*/\(lib.*\)'%libdir='${moddir}/\1'%g" $l > $l"_" mv -f $l"_" $l fi