]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
improve modif_la_files() function for CASCADE libraries
authorvsr <vsr@opencascade.com>
Fri, 16 Dec 2005 10:27:51 +0000 (10:27 +0000)
committervsr <vsr@opencascade.com>
Fri, 16 Dec 2005 10:27:51 +0000 (10:27 +0000)
config_files/common.sh

index 2288fa8043eb151eea6471af33440fde65836e37..3c9b217bada01c520573ec21dfa0034b7d41b078 100755 (executable)
@@ -466,7 +466,7 @@ if [ "$l" != "X" ] ; then
     if [ ! -d ${casdir} ] ; then casdir=`printenv CASROOT`/lin/lib ; fi
     if [ -n "${CASROOT}" ] && [ -d "${casdir}" ] ; then
        # echo $l $CASROOT $casdir
     if [ ! -d ${casdir} ] ; then casdir=`printenv CASROOT`/lin/lib ; fi
     if [ -n "${CASROOT}" ] && [ -d "${casdir}" ] ; then
        # echo $l $CASROOT $casdir
-       sed -e "s%-L[^[:space:]]*CAS-[^[:space:]]*%-L${casdir}%g" $l > _$l
+       sed -e "s%-L[^[:space:]]*\(OCT\|CAS\)[^[:space:]]*%-L${casdir}%g" $l > _$l
        mv -f _$l $l
     fi
     # 3. process omniORB dependencies
        mv -f _$l $l
     fi
     # 3. process omniORB dependencies
@@ -530,4 +530,4 @@ done
 
 cd $srcdir
 return 0
 
 cd $srcdir
 return 0
-}
\ No newline at end of file
+}