From: vsr Date: Tue, 25 Oct 2005 12:43:53 +0000 (+0000) Subject: graphviz: fix a bug with *.la files X-Git-Tag: V_3_1_0a2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9451ab8e5e0083555aa225ee98f6547115c7d44b;p=tools%2Finstall.git graphviz: fix a bug with *.la files --- diff --git a/config_files/graphviz-1.9.sh b/config_files/graphviz-1.9.sh index 993dfe3..9c5c8d4 100755 --- a/config_files/graphviz-1.9.sh +++ b/config_files/graphviz-1.9.sh @@ -79,6 +79,15 @@ make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} source ${INSTALL_WORK}/$SHRC check_jb tar xfz ${SOURCE_DIR}/graphviz-1.9.tar.gz -C ${INSTALL_ROOT} +cd ${PRODUCT_DIR}/lib/graphviz +for l in `ls *.la`; do + libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"` + sed -e "s%${libdir}%${PRODUCT_DIR}/lib/graphviz%g" $l > _$l + libdir=`dirname $libdir` + sed -e "s%${libdir}%${PRODUCT_DIR}/lib/graphviz%g" _$l > $l + rm -f _$l + chmod a+x $l +done print_env }