if ( ! -e ${module_src}/${cfg_file} ) then
set cfg_file=configure.in.base
set vx=`grep -e "^VERSION=" ${module_src}/${cfg_file} | awk -F= '{ if (NF>1) print $NF; }' | tr -d '[:space:]'`
+ if ( "$vx" == "" ) then
+ set vx=`grep -e "^AC_INIT" ${module_src}/${cfg_file} | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
+ endif
else
set vx=`grep -e "^AC_INIT" ${module_src}/${cfg_file} | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
endif
if [ ! -e ${module_src}/${cfg_file} ] ; then
cfg_file=configure.in.base
vx=`grep -e "^VERSION=" ${module_src}/${cfg_file} | awk -F= '{ if (NF>1) print $NF; }' | tr -d '[:space:]'`
- else
+ if [ "$vx" == "" ] ; then
+ vx=`grep -e "^AC_INIT" ${module_src}/${cfg_file} | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
+ fi
+ else
vx=`grep -e "^AC_INIT" ${module_src}/${cfg_file} | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
fi
px=${BUILD_DIR}/${module}
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${mod}[^[:space:]/]*/lib% \1${moddir}/lib%g" \
-e "s%^libdir='[^[:space:]]*${mod}[^[:space:]]*/\(lib.*\)'%libdir='${moddir}/\1'%g" $l > $l"_"
mv -f $l"_" $l
+ for mod1 in $SALOME_MODULES; do
+ sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${mod1}[^[:space:]]*/${mod1}_build%%g" $l > $l"_"
+ mv -f $l"_" $l
+ done
fi
done
mv -f $l"_" $l
fi
+ blsurfdir=`printenv BLSURFHOME`/lib
+ if [ -n "${blsurfdir}" ] && [ -d "${blsurfdir}" ] ; then
+ # echo $l $BOOSTDIR $boostdir
+ sed -e "s%-L[^[:space:]]*blsurf[^[:space:]]*/lib%-L${blsurfdir}%g" $l > $l"_"
+ mv -f $l"_" $l
+ fi
+
# # 14. modify libdir
# #sed -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib/salome'%g" $l > $l"_"
# mod=`basename $ldir | awk -F_ '{print $1}'`