From c8f58cfd978240181548166d44f6a399f45cc515 Mon Sep 17 00:00:00 2001 From: inv Date: Tue, 27 Nov 2012 11:04:27 +0000 Subject: [PATCH] Correct la files procedure for Distene MeshGems-1.0 --- config_files/common.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.39.2