#!/bin/bash -noprofile
####################################################################################
-# File : COMPONENT_SRC.sh
+# File : MULTIPR_SRC.sh
# Created : Thu Dec 18 12:01:00 2002
# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
# Project : SALOME
VERSION="4.0.0"
check_version(){
-if [ -n "${COMPONENT_SRC_DIR}" ]; then
- if [ -f ${COMPONENT_SRC_DIR}/configure.in.base ]; then
- ver=`grep -E "^VERSION=" ${COMPONENT_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
+if [ -n "${MULTIPR_SRC_DIR}" ]; then
+ if [ -f ${MULTIPR_SRC_DIR}/configure.in.base ]; then
+ ver=`grep -E "^VERSION=" ${MULTIPR_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' `
if [ "$ver" = "${VERSION}" ]; then
return 0
fi
print_env(){
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
-export COMPONENT_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
+export MULTIPR_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
##
EOF
if [ $? -eq 0 ] ; then
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
-export COMPONENT_SRC_DIR=${COMPONENT_SRC_DIR}
+export MULTIPR_SRC_DIR=${MULTIPR_SRC_DIR}
##
EOF
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/COMPONENTsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SOURCE_DIR}/MULTIPRsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
print_env
}
# build sources
prod_bin=`echo $PRODUCT_TYPE | sed "s%src%bin%g"`
-mkdir -p ${INSTALL_ROOT}/COMPONENT_${VERSION}
+mkdir -p ${INSTALL_ROOT}/MULTIPR_${VERSION}
if [ -e ./build.sh ] ; then
cp -f ./build.sh ${INSTALL_ROOT}
CUR_DIR=`pwd`
cd ${INSTALL_ROOT}
-check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT COMPONENT
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT MULTIPR
# create environment for the built binaries
cd $CUR_DIR
-./COMPONENT_BIN.sh print_env $INSTALL_WORK $SOURCE_DIR $INSTALL_ROOT $PRODUCT_SEQUENCE $prod_bin
+./MULTIPR_BIN.sh print_env $INSTALL_WORK $SOURCE_DIR $INSTALL_ROOT $PRODUCT_SEQUENCE $prod_bin
}
install_binary()
export SOURCE_DIR=$3;
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="COMPONENTsrc" ; fi
-export PRODUCT="COMPONENT_SRC_${VERSION}"
+if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="MULTIPRsrc" ; fi
+export PRODUCT="MULTIPR_SRC_${VERSION}"
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh