From: inv Date: Tue, 27 Nov 2012 11:04:27 +0000 (+0000) Subject: Correct la files procedure for Distene MeshGems-1.0 X-Git-Tag: V6_6_0~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c8f58cfd978240181548166d44f6a399f45cc515;p=tools%2Finstall.git Correct la files procedure for Distene MeshGems-1.0 --- diff --git a/config_files/common.sh b/config_files/common.sh index b1f725f..6f4d55b 100755 --- a/config_files/common.sh +++ b/config_files/common.sh @@ -755,6 +755,12 @@ expatdir=${EXPAT_ROOT}/lib paraviewdir=`printenv PVHOME`/lib # qt dir qtdir=`printenv QTDIR`/lib +# distene meshgems dir +if test `uname -m` = "x86_64" ; then + mgemsdir=`printenv MESHGEMSHOME`/lib/Linux_64 +else + mgemsdir=`printenv MESHGEMSHOME`/lib/Linux +fi for l in X ${la_files}; do @@ -920,6 +926,11 @@ if [ "$l" != "X" ] ; then sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*ParaView-[0-9]\.[0-9]\+\.[0-9]/lib% \1${paraviewdir}%g" $l fi + # . process DISTENE MeshGems dependencies + if [ -n "${mgemsdir}" ] && [ -d "${mgemsdir}" ] ; then + sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*MeshGems-[0-9.]\+/Products/lib/Linux\(_64\)\?% \1${mgemsdir}%g" $l + fi + fi done