fi
# . process MED dependencies
- meddir=`printenv MED2HOME`/lib
- if [ -n "${MED2HOME}" ] && [ -d "${meddir}" ] ; then
- # echo $l $MED2HOME $meddir
+ meddir=`printenv MED3HOME`/lib
+ if [ -n "${MED3HOME}" ] && [ -d "${meddir}" ] ; then
+ # echo $l $MED3HOME $meddir
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*med[^[:space:]/]*/lib% \1${meddir}%g" $l > $l"_"
mv -f $l"_" $l
fi
check_version()
{
-if [ -z "$MED2HOME" ]; then
- #echo "MED2HOME doesn't set"
+if [ -z "$MED3HOME" ]; then
+ #echo "MED3HOME doesn't set"
return 1
fi
-check_lib_version libmed.so.1.1.2 ${MED2HOME}/lib
+check_lib_version libmed.so.1.1.2 ${MED3HOME}/lib
if [ "$?" -eq "0" ]; then
#echo "The product ${PRODUCT} has been already installed on yours system"
return 0
{
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
-export MED2HOME=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PATH=\${MED2HOME}/bin:\${PATH}
-export LD_LIBRARY_PATH=\${MED2HOME}/lib:\${LD_LIBRARY_PATH}
+export MED3HOME=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PATH=\${MED3HOME}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${MED3HOME}/lib:\${LD_LIBRARY_PATH}
##
EOF
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})