SALOME_MODULES="`env | awk -F_ '/[[:alnum:]]*_ROOT_DIR/ { print $1 }'`"
cd $ldir
+ldir=`pwd`
la_files=`find . -name "*.la"`
for l in X ${la_files}; do
fi
# 13. modify libdir
#sed -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib/salome'%g" $l > $l"_"
+ mod=`basename $ldir | awk -F_ '{print $1}'`
+ moddir=`printenv ${mod}_ROOT_DIR`
sed -e "s%^libdir='[^[:space:]]*${mod}[^[:space:]]*/\(lib.*\)'%libdir='${moddir}/\1'%g" $l > $l"_"
mv -f $l"_" $l
fi