]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Fix libxml and graphviz dependencies pb.
authorakl <akl@opencascade.com>
Thu, 28 Feb 2008 06:39:34 +0000 (06:39 +0000)
committerakl <akl@opencascade.com>
Thu, 28 Feb 2008 06:39:34 +0000 (06:39 +0000)
config_files/common.sh

index c8d9a8a88ddc30b18033a9bd9ec565d6a4b4b124..7c6eb26ce7fe2ec7e30649157a8b4b730206fdb8 100755 (executable)
@@ -797,8 +797,7 @@ if [ "$l" != "X" ] ; then
     # 15. process libxml dependencies
     libxmldir=`printenv LIBXML_DIR`/lib
     if [ ! -d ${libxmldir} ] ; then libxmldir=`printenv  LIBXML_DIR`/lib ; fi
-    sed -e "s%\(.*\)\([[:space:]].*/lib/libxml2.la[[:space:]]\)\(.*\)%\1 ${libxmldir}/libxml2.la \3%g" \
-        -e "s%-L[^[:space:]]*libxml2[^[:space:]]*/lib%-L${libxmldir}%g" $l > $l"_"
+    sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*libxml2[^[:space:]]*/lib% \1${libxmldir}%g" $l > $l"_"
     mv -f $l"_" $l     
 
     # 16. process metis dependencies
@@ -823,12 +822,11 @@ if [ "$l" != "X" ] ; then
        mv -f $l"_" $l
 
     # 19. process graphviz dependencies
-    graphvizdir=`printenv GRAPHVIZHOME`
-    if [ -n "${graphvizdir}" ] && [ -d "${graphvizdir}" ] ; then
-       sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*graphviz-[0-9]\+\.[0-9]\+\.[0-9]\+% \1${graphvizdir}%g" $l > $l"_"
-       chmod -f --reference=$l $l"_"
-       mv -f $l"_" $l  
-    fi
+    graphvizdir=`printenv GRAPHVIZHOME`/lib
+    if [ ! -d ${graphvizdir} ] ; then graphvizdir=`printenv GRAPHVIZHOME`/lib ; fi
+    sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*graphviz[^[:space:]]*/lib% \1${graphvizdir}%g" $l > $l"_"
+    chmod -f --reference=$l $l"_"
+    mv -f $l"_" $l     
 
 fi
 done